]> git.itanic.dy.fi Git - linux-stable/commit
KVM: nVMX: Introduce accessor to get Hyper-V eVMCS pointer
authorVitaly Kuznetsov <vkuznets@redhat.com>
Tue, 5 Dec 2023 10:36:28 +0000 (11:36 +0100)
committerSean Christopherson <seanjc@google.com>
Thu, 7 Dec 2023 17:35:08 +0000 (09:35 -0800)
commitc98842b26c233318bb18c77cc6e25859fe76c80e
tree0bb7c520f66595f7e93cc61dafd5f799b096e538
parent453e42b0557148cc7092c72eff6677a5436e3c7c
KVM: nVMX: Introduce accessor to get Hyper-V eVMCS pointer

There's a number of 'vmx->nested.hv_evmcs' accesses in nested.c, introduce
'nested_vmx_evmcs()' accessor to hide them all in !CONFIG_KVM_HYPERV case.

No functional change intended.

Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Tested-by: Jeremi Piotrowski <jpiotrowski@linux.microsoft.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Link: https://lore.kernel.org/r/20231205103630.1391318-15-vkuznets@redhat.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/hyperv.h
arch/x86/kvm/vmx/nested.c