]> 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)
commit8c70789c8abe402a4ef1b07087e5495c108deb73
tree3d7394ee89a5b22cc06ecc93bbfe5110a19ba444
parent595d65d8dd7bb9b222150c60f14db41720c620db
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