Re: [RFC PATCH 0/3] KVM: x86: Disallow writes to feature MSRs post-KVM_RUN

From: Paolo Bonzini
Date: Wed Aug 10 2022 - 08:53:08 EST


On 8/5/22 19:29, Sean Christopherson wrote:
Give feature MSRs that same treatment as CPUID and disallow changing said
MSRs after KVM_RUN.

RFC as this is lightly tested and should come with a selftests update to
verify it actually works. Posting early to get feedback on the overall
idea, and on the VMX MSRs trickery (though I think patches 1-2 are a good
idea irrespective of trying to reduce the overhead of the new check).

They are good, just a small style remark on patch 2.

Paolo