]> Gentwo Git Trees - linux/.git/commit
KVM: VMX: Support the immediate form of WRMSRNS in the VM-Exit fastpath
authorXin Li <xin@zytor.com>
Tue, 5 Aug 2025 20:22:23 +0000 (13:22 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 19 Aug 2025 18:59:46 +0000 (11:59 -0700)
commitec93675a325191c95bc322a4471c2f194f7211fc
tree035c7e421b61d1b1fe56c4e544b4373545910a2b
parent885df2d2109a60f84d84639ce6d95a91045f6c45
KVM: VMX: Support the immediate form of WRMSRNS in the VM-Exit fastpath

Add support for handling "WRMSRNS with an immediate" VM-Exits in KVM's
fastpath.  On Intel, all writes to the x2APIC ICR and to the TSC Deadline
MSR are non-serializing, i.e. it's highly likely guest kernels will switch
to using WRMSRNS when possible.  And in general, any MSR written via
WRMSRNS is probably worth handling in the fastpath, as the entire point of
WRMSRNS is to shave cycles in hot paths.

Signed-off-by: Xin Li (Intel) <xin@zytor.com>
[sean: rewrite changelog, split rename to separate patch]
Link: https://lore.kernel.org/r/20250805202224.1475590-6-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c
arch/x86/kvm/x86.h