OSDN Git Service

KVM: x86: hyper-v: Prepare to check access to Hyper-V MSRs
authorVitaly Kuznetsov <vkuznets@redhat.com>
Fri, 21 May 2021 09:51:38 +0000 (11:51 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 17:09:39 +0000 (13:09 -0400)
commitb4128000e2c9b176a449d748dcb083c61d61cc6e
treecaa59d7ef9ea40516084019e4a22161bb6b44266
parent10d7bf1e46dc19d964f0f67d2a6d20df907742d1
KVM: x86: hyper-v: Prepare to check access to Hyper-V MSRs

Introduce hv_check_msr_access() to check if the particular MSR
should be accessible by 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-5-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/hyperv.c