]> git.itanic.dy.fi Git - linux-stable/commit
KVM: VMX: Split off vmx_onhyperv.{ch} from hyperv.{ch}
authorVitaly Kuznetsov <vkuznets@redhat.com>
Tue, 5 Dec 2023 10:36:17 +0000 (11:36 +0100)
committerSean Christopherson <seanjc@google.com>
Thu, 7 Dec 2023 17:34:06 +0000 (09:34 -0800)
commit50a82b0eb88c108d1ebc73a97f5b81df0d5918e0
treefe327541e7c3a16229b871fcf351bf4a21d8021a
parentcfef5af3cb0e57501dcac2816ab11a20c074866d
KVM: VMX: Split off vmx_onhyperv.{ch} from hyperv.{ch}

hyperv.{ch} is currently a mix of stuff which is needed by both Hyper-V on
KVM and KVM on Hyper-V. As a preparation to making Hyper-V emulation
optional, put KVM-on-Hyper-V specific code into dedicated files.

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-4-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/vmx.c
arch/x86/kvm/vmx/vmx_onhyperv.c [new file with mode: 0644]
arch/x86/kvm/vmx/vmx_onhyperv.h [new file with mode: 0644]
arch/x86/kvm/vmx/vmx_ops.h