diff options
| author | Jim Mattson <jmattson@google.com> | 2025-01-13 12:01:43 -0800 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2025-02-12 10:16:27 -0800 |
| commit | c9e5f3fa903961131a832c2593022bc6a5229cf5 (patch) | |
| tree | 8dd12cb2639c6c88818170f63dc8682fece4b24d /arch/x86/kvm/svm/nested.c | |
| parent | KVM: x86: Use kvfree_rcu() to free old optimized APIC map (diff) | |
| download | linux-c9e5f3fa903961131a832c2593022bc6a5229cf5.tar.gz linux-c9e5f3fa903961131a832c2593022bc6a5229cf5.zip | |
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>
Diffstat (limited to 'arch/x86/kvm/svm/nested.c')
| -rw-r--r-- | arch/x86/kvm/svm/nested.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nested.c index d77b094d9a4d..c6b79c2e1e05 100644 --- a/arch/x86/kvm/svm/nested.c +++ b/arch/x86/kvm/svm/nested.c @@ -994,7 +994,7 @@ int nested_svm_vmexit(struct vcpu_svm *svm) kvm_clear_request(KVM_REQ_GET_NESTED_STATE_PAGES, vcpu); /* in case we halted in L2 */ - svm->vcpu.arch.mp_state = KVM_MP_STATE_RUNNABLE; + kvm_set_mp_state(vcpu, KVM_MP_STATE_RUNNABLE); /* Give the current vmcb to the guest */ |
