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)
commitff81a90f45ce6b818167c590f7625b3b573defc9
tree3d7394ee89a5b22cc06ecc93bbfe5110a19ba444
parent157fc497b54fd1dfcdedbca6199adca4bf5ee6ff
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