]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Ignore benign host writes to "unsupported" F15H_PERF_CTL MSRs
authorSean Christopherson <seanjc@google.com>
Sat, 11 Jun 2022 00:57:55 +0000 (00:57 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 20 Jun 2022 15:50:33 +0000 (11:50 -0400)
commit3adba36a9fdf2c1650c9d113eb93d8fb88df1655
tree3d7394ee89a5b22cc06ecc93bbfe5110a19ba444
parent8c7b1a01a3588184c956d3d6a131aa0709b145c6
KVM: x86: Ignore benign host writes to "unsupported" F15H_PERF_CTL MSRs

Ignore host userspace writes of '0' to F15H_PERF_CTL MSRs KVM reports
in the MSR-to-save list, but the MSRs are ultimately unsupported.  All
MSRs in said list must be writable by userspace, e.g. if userspace sends
the list back at KVM without filtering out the MSRs it doesn't need.

Note, reads of said MSRs already have the desired behavior.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220611005755.753273-8-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c