Re: [PATCH v1 3/4] KVM: VMX: Handle the immediate form of MSR instructions

From: Xin Li
Date: Thu Jul 31 2025 - 18:11:00 EST


On 7/31/2025 9:53 AM, Xin Li wrote:
The CPUID feature bit also indicates support for the two new VM-exit reasons.
Therefore, KVM needs to reflect EXIT_REASON_MSR_READ/WRITE_IMM VM- exits to
L1 guests in nested cases if KVM claims it supports the new form of MSR
instructions.

Damn, forgot about nested...

The current nested KVM VMX implementation already handles VM exits
caused by the immediate form of MSR instructions, forwarding them to L1
as intended by design.

I just need to add MSR bitmap checks to nested_vmx_exit_handled_msr().

Thanks!
Xin