]> git.itanic.dy.fi Git - linux-stable/commit
KVM: VMX: Split off hyperv_evmcs.{ch}
authorVitaly Kuznetsov <vkuznets@redhat.com>
Tue, 5 Dec 2023 10:36:20 +0000 (11:36 +0100)
committerSean Christopherson <seanjc@google.com>
Thu, 7 Dec 2023 17:34:19 +0000 (09:34 -0800)
commite7ad84db4d718e18c7a133e941ba4c7d4c6d4cbf
treeacffc48fd4ebbc1b5232e39467dbb1b7bcb6f07b
parent0659262a2625ca3e4061796cd4f4935091220056
KVM: VMX: Split off hyperv_evmcs.{ch}

Some Enlightened VMCS related code is needed both by Hyper-V on KVM and
KVM on Hyper-V. As a preparation to making Hyper-V emulation optional,
create dedicated 'hyperv_evmcs.{ch}' files which are used by both.

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-7-vkuznets@redhat.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/Makefile
arch/x86/kvm/vmx/hyperv.c
arch/x86/kvm/vmx/hyperv.h
arch/x86/kvm/vmx/hyperv_evmcs.c [new file with mode: 0644]
arch/x86/kvm/vmx/hyperv_evmcs.h [new file with mode: 0644]
arch/x86/kvm/vmx/nested.h
arch/x86/kvm/vmx/vmx_onhyperv.h