diff options
author | Peter Xu <peterx@redhat.com> | 2020-06-22 18:04:42 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-07-08 16:21:40 -0400 |
commit | 12bc2132b15e0a969b3f455d90a5f215ef239eff (patch) | |
tree | a090be2f6995141fcd24283ed6a613ba789f8e10 /arch/x86/kvm/svm/svm.c | |
parent | 6abe9c1386e5c86f360e4e8fde8eec95eee77aa3 (diff) | |
download | lwn-12bc2132b15e0a969b3f455d90a5f215ef239eff.tar.gz lwn-12bc2132b15e0a969b3f455d90a5f215ef239eff.zip |
KVM: X86: Do the same ignore_msrs check for feature msrs
Logically the ignore_msrs and report_ignored_msrs should also apply to feature
MSRs. Add them in.
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20200622220442.21998-3-peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm/svm.c')
-rw-r--r-- | arch/x86/kvm/svm/svm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c index c0da4dd78ac5..70a824806274 100644 --- a/arch/x86/kvm/svm/svm.c +++ b/arch/x86/kvm/svm/svm.c @@ -2359,7 +2359,7 @@ static int svm_get_msr_feature(struct kvm_msr_entry *msr) msr->data |= MSR_F10H_DECFG_LFENCE_SERIALIZE; break; default: - return 1; + return KVM_MSR_RET_INVALID; } return 0; |