KVM: x86: Introduce kvm_set_mp_state()

Replace all open-coded assignments to vcpu->arch.mp_state with calls
to a new helper, kvm_set_mp_state(), to centralize all changes to
mp_state.

No functional change intended.

Signed-off-by: Jim Mattson <jmattson@google.com>
Link: https://lore.kernel.org/r/20250113200150.487409-2-jmattson@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
This commit is contained in:
Jim Mattson 2025-01-13 12:01:43 -08:00 • committed by Sean Christopherson
commit c9e5f3fa90
7 changed files with 23 additions and 19 deletions