summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/cpuid.c
diff options
context:
space:
mode:
authorOliver Upton <oupton@google.com>2020-10-27 16:10:41 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2020-11-08 04:41:29 -0500
commit1930e5ddcead2c23567131e62c86b15efce054be (patch)
tree954daddba1b077e9b5162462926e964019227d23 /arch/x86/kvm/cpuid.c
parentcc4cb017678aa66d3fb4501b2f7424ed28fc7f4d (diff)
downloadlwn-1930e5ddcead2c23567131e62c86b15efce054be.tar.gz
lwn-1930e5ddcead2c23567131e62c86b15efce054be.zip
kvm: x86: reads of restricted pv msrs should also result in #GP
commit 66570e966dd9 ("kvm: x86: only provide PV features if enabled in guest's CPUID") only protects against disallowed guest writes to KVM paravirtual msrs, leaving msr reads unchecked. Fix this by enforcing KVM_CPUID_FEATURES for msr reads as well. Fixes: 66570e966dd9 ("kvm: x86: only provide PV features if enabled in guest's CPUID") Signed-off-by: Oliver Upton <oupton@google.com> Reviewed-by: Peter Shier <pshier@google.com> Message-Id: <20201027231044.655110-4-oupton@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/cpuid.c')
0 files changed, 0 insertions, 0 deletions