OSDN Git Service

KVM: x86: hyper-v: Prepare to check access to Hyper-V hypercalls
authorVitaly Kuznetsov <vkuznets@redhat.com>
Fri, 21 May 2021 09:51:54 +0000 (11:51 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 17:09:43 +0000 (13:09 -0400)
commit4ad81a91119df7c0e868f9e4c82b9159645bc906
tree1b652aa3853e27da1df1b1604aebf7a80b551764
parent1aa8a4184dbde5f50b70b2c706bcfb6b57da9ea7
KVM: x86: hyper-v: Prepare to check access to Hyper-V hypercalls

Introduce hv_check_hypercallr_access() to check if the particular hypercall
should be available to guest, this will be used with
KVM_CAP_HYPERV_ENFORCE_CPUID mode.

No functional change intended.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20210521095204.2161214-21-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/hyperv.c