]> Gentwo Git Trees - linux/.git/commit
KVM: x86: Unconditionally grab data from EDX:EAX in WRMSR fastpath
authorSean Christopherson <seanjc@google.com>
Tue, 5 Aug 2025 19:05:15 +0000 (12:05 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 19 Aug 2025 18:59:35 +0000 (11:59 -0700)
commitaa2e4f029341c0b56645d49cd5959946cdab31b9
tree5a5ade327fca637024cb5a733c1e9fc0f08cead1
parentaebcbb60977323c21c8d89eb4298e454f8e89299
KVM: x86: Unconditionally grab data from EDX:EAX in WRMSR fastpath

Always grab EDX:EAX in the WRMSR fastpath to deduplicate and simplify the
case statements, and to prepare for handling immediate variants of WRMSRNS
in the fastpath (the data register is explicitly provided in that case).
There's no harm in reading the registers, as their values are always
available, i.e. don't require VMREADs (or similarly slow operations).

No real functional change intended.

Cc: Xin Li <xin@zytor.com>
Link: https://lore.kernel.org/r/20250805190526.1453366-8-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/x86.c