Searched refs:mp_state (Results 1 – 12 of 12) sorted by relevance
97 vcpu->arch.mp_state.mp_state = KVM_MP_STATE_RUNNABLE; in kvm_psci_vcpu_on()164 WRITE_ONCE(tmp->arch.mp_state.mp_state, KVM_MP_STATE_STOPPED); in kvm_prepare_system_event()
599 WRITE_ONCE(vcpu->arch.mp_state.mp_state, KVM_MP_STATE_STOPPED); in __kvm_arm_vcpu_power_off()613 return READ_ONCE(vcpu->arch.mp_state.mp_state) == KVM_MP_STATE_STOPPED; in kvm_arm_vcpu_stopped()618 WRITE_ONCE(vcpu->arch.mp_state.mp_state, KVM_MP_STATE_SUSPENDED); in kvm_arm_vcpu_suspend()625 return READ_ONCE(vcpu->arch.mp_state.mp_state) == KVM_MP_STATE_SUSPENDED; in kvm_arm_vcpu_suspended()629 struct kvm_mp_state *mp_state) in kvm_arch_vcpu_ioctl_get_mpstate() argument631 *mp_state = READ_ONCE(vcpu->arch.mp_state); in kvm_arch_vcpu_ioctl_get_mpstate()637 struct kvm_mp_state *mp_state) in kvm_arch_vcpu_ioctl_set_mpstate() argument643 switch (mp_state->mp_state) { in kvm_arch_vcpu_ioctl_set_mpstate()645 WRITE_ONCE(vcpu->arch.mp_state, *mp_state); in kvm_arch_vcpu_ioctl_set_mpstate()1367 WRITE_ONCE(vcpu->arch.mp_state.mp_state, KVM_MP_STATE_RUNNABLE); in kvm_arch_vcpu_ioctl_vcpu_init()
556 hyp_vcpu->vcpu.arch.mp_state.mp_state = KVM_MP_STATE_STOPPED; in init_pkvm_hyp_vcpu()1038 WRITE_ONCE(hyp_vcpu->vcpu.arch.mp_state.mp_state, KVM_MP_STATE_RUNNABLE); in pkvm_reset_vcpu()1199 WARN_ON(vcpu->arch.mp_state.mp_state == KVM_MP_STATE_STOPPED); in pvm_psci_vcpu_off()1202 WRITE_ONCE(vcpu->arch.mp_state.mp_state, KVM_MP_STATE_STOPPED); in pvm_psci_vcpu_off()
4776 vcpu->arch.mp_state == KVM_MP_STATE_INIT_RECEIVED) in kvm_vcpu_ioctl_x86_set_vcpu_events()8744 vcpu->arch.mp_state = state; in __kvm_vcpu_halt()9816 if (vcpu->arch.mp_state == KVM_MP_STATE_INIT_RECEIVED) { in vcpu_enter_guest()10049 switch(vcpu->arch.mp_state) { in vcpu_block()10053 vcpu->arch.mp_state = in vcpu_block()10072 return (vcpu->arch.mp_state == KVM_MP_STATE_RUNNABLE && in kvm_vcpu_running()10273 if (unlikely(vcpu->arch.mp_state == KVM_MP_STATE_UNINITIALIZED)) { in kvm_arch_vcpu_ioctl_run()10510 struct kvm_mp_state *mp_state) in kvm_arch_vcpu_ioctl_get_mpstate() argument10523 if ((vcpu->arch.mp_state == KVM_MP_STATE_HALTED || in kvm_arch_vcpu_ioctl_get_mpstate()10524 vcpu->arch.mp_state == KVM_MP_STATE_AP_RESET_HOLD) && in kvm_arch_vcpu_ioctl_get_mpstate()[all …]
2931 WARN_ON_ONCE(vcpu->arch.mp_state == KVM_MP_STATE_INIT_RECEIVED); in kvm_apic_accept_events()2941 vcpu->arch.mp_state = KVM_MP_STATE_RUNNABLE; in kvm_apic_accept_events()2943 vcpu->arch.mp_state = KVM_MP_STATE_INIT_RECEIVED; in kvm_apic_accept_events()2947 if (vcpu->arch.mp_state == KVM_MP_STATE_INIT_RECEIVED) { in kvm_apic_accept_events()2952 vcpu->arch.mp_state = KVM_MP_STATE_RUNNABLE; in kvm_apic_accept_events()
503 struct kvm_mp_state *mp_state) in kvm_arch_vcpu_ioctl_get_mpstate() argument509 struct kvm_mp_state *mp_state) in kvm_arch_vcpu_ioctl_set_mpstate() argument
523 struct kvm_mp_state mp_state; member
3642 vcpu->arch.mp_state = KVM_MP_STATE_INIT_RECEIVED; in nested_vmx_run()3915 if (vcpu->arch.mp_state != KVM_MP_STATE_INIT_RECEIVED) in vmx_check_nested_events()3926 if (vcpu->arch.mp_state == KVM_MP_STATE_INIT_RECEIVED) in vmx_check_nested_events()4171 if (vcpu->arch.mp_state == KVM_MP_STATE_HALTED) in sync_vmcs02_to_vmcs12()4173 else if (vcpu->arch.mp_state == KVM_MP_STATE_INIT_RECEIVED) in sync_vmcs02_to_vmcs12()4681 vcpu->arch.mp_state = KVM_MP_STATE_RUNNABLE; in nested_vmx_vmexit()
2005 struct kvm_mp_state *mp_state) in kvm_arch_vcpu_ioctl_get_mpstate() argument2011 struct kvm_mp_state *mp_state) in kvm_arch_vcpu_ioctl_set_mpstate() argument
3782 struct kvm_mp_state *mp_state) in kvm_arch_vcpu_ioctl_get_mpstate() argument3797 struct kvm_mp_state *mp_state) in kvm_arch_vcpu_ioctl_set_mpstate() argument3806 switch (mp_state->mp_state) { in kvm_arch_vcpu_ioctl_set_mpstate()
771 svm->vcpu.arch.mp_state = KVM_MP_STATE_RUNNABLE; in nested_svm_vmexit()
642 int mp_state; member