diff options
| author | Jim Mattson <[email protected]> | 2025-01-13 20:01:43 +0000 |
|---|---|---|
| committer | Sean Christopherson <[email protected]> | 2025-02-12 18:16:27 +0000 |
| 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 | kernel-c9e5f3fa903961131a832c2593022bc6a5229cf5.tar.gz kernel-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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
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 */ |
