Re: [PATCH] KVM: x86: Allow, don't ignore, same-value writes to immutable MSRs

From: Sean Christopherson
Date: Fri May 03 2024 - 17:34:43 EST


On Mon, 08 Apr 2024 16:15:00 -0700, Sean Christopherson wrote:
> When handling userspace writes to immutable feature MSRs for a vCPU that
> has already run, fall through into the normal code to set the MSR instead
> of immediately returning '0'. I.e. allow such writes, instead of ignoring
> such writes. This fixes a bug where KVM incorrectly allows writes to the
> VMX MSRs that enumerate which CR{0,4} can be set, but only if the vCPU has
> already run.
>
> [...]

Applied to kvm-x86 misc.

[1/1] KVM: x86: Allow, don't ignore, same-value writes to immutable MSRs
https://github.com/kvm-x86/linux/commit/1d294dfaba8c

--
https://github.com/kvm-x86/linux/tree/next