]> Gentwo Git Trees - linux/.git/commit
KVM: x86: Fold WRMSR fastpath helpers into the main handler
authorSean Christopherson <seanjc@google.com>
Tue, 5 Aug 2025 19:05:16 +0000 (12:05 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 19 Aug 2025 18:59:36 +0000 (11:59 -0700)
commitd618fb4e43a0287a54551aa01be58c75ac668671
treefcafc1fdf03257bac48b680c6537bebc90e6a2c4
parentaa2e4f029341c0b56645d49cd5959946cdab31b9
KVM: x86: Fold WRMSR fastpath helpers into the main handler

Fold the per-MSR WRMSR fastpath helpers into the main handler now that the
IPI path in particular is relatively tiny.  In addition to eliminating a
decent amount of boilerplate, this removes the ugly -errno/1/0 => bool
conversion (which is "necessitated" by kvm_x2apic_icr_write_fast()).

Opportunistically drop the comment about IPIs, as the purpose of the
fastpath is hopefully self-evident, and _if_ it needs more documentation,
the documentation (and rules!) should be placed in a more central location.

No functional change intended.

Link: https://lore.kernel.org/r/20250805190526.1453366-9-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/x86.c