diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-01-20 14:22:55 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-01-23 09:51:07 +0100 |
commit | 99634e3ec0d4e0df28ae465b10f3613a4ceee58b (patch) | |
tree | 822fdfd1530d57a0fe55f9a27f1a39647cbb71b3 | |
parent | 5fcf3a55a62afb0760ccb6f391d62f20bce4a42f (diff) |
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>
-rw-r--r-- | arch/x86/kvm/x86.c | 1 |
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 |