KVM: selftests: nVMX: Properly deal with 'hv_clean_fields'
authorVitaly Kuznetsov <vkuznets@redhat.com>
Thu, 3 Feb 2022 10:46:16 +0000 (11:46 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 18:50:46 +0000 (13:50 -0500)
commit761b5ebaa12095ade05788951d8d8c489338cb75
tree081eabf337426d4e5af4ffe46d9f280ee5bcd88f
parent6081f9c764263d642fc187675623fb47accb3649
KVM: selftests: nVMX: Properly deal with 'hv_clean_fields'

Instead of just resetting 'hv_clean_fields' to 0 on every enlightened
vmresume, do the expected cleaning of the corresponding bit on enlightened
vmwrite. Avoid direct access to 'current_evmcs' from evmcs_test to support
the change.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20220203104620.277031-3-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/x86_64/evmcs.h
tools/testing/selftests/kvm/x86_64/evmcs_test.c