aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-01-20 14:22:55 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2020-01-23 09:51:07 +0100
commit99634e3ec0d4e0df28ae465b10f3613a4ceee58b (patch)
tree822fdfd1530d57a0fe55f9a27f1a39647cbb71b3 /arch
parenttools/kvm_stat: Fix kvm_exit filter name (diff)
downloadlinux-dev-99634e3ec0d4e0df28ae465b10f3613a4ceee58b.tar.xz
linux-dev-99634e3ec0d4e0df28ae465b10f3613a4ceee58b.zip
KVM: x86: list MSR_IA32_UCODE_REV as an emulated MSR
Even if it's read-only, it can still be written to by userspace. Let them know by adding it to KVM_GET_MSR_INDEX_LIST. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/x86.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 3e70af42f65b..9f24f5d16854 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -1228,6 +1228,7 @@ static const u32 emulated_msrs_all[] = {
MSR_MISC_FEATURES_ENABLES,
MSR_AMD64_VIRT_SPEC_CTRL,
MSR_IA32_POWER_CTL,
+ MSR_IA32_UCODE_REV,
/*
* The following list leaves out MSRs whose values are determined