Re: [PATCH v2 2/2] KVM: x86: emulate wait-for-SIPI and SIPI-VMExit

From: Paolo Bonzini
Date: Fri Nov 06 2020 - 05:10:17 EST


On 06/11/20 07:51, yadong.qi@xxxxxxxxx wrote:
@@ -4036,6 +4060,8 @@ static void sync_vmcs02_to_vmcs12(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12)
if (vcpu->arch.mp_state == KVM_MP_STATE_HALTED)
vmcs12->guest_activity_state = GUEST_ACTIVITY_HLT;
+ else if (vcpu->arch.mp_state == KVM_MP_STATE_INIT_RECEIVED)
+ vmcs12->guest_activity_state = GUEST_ACTIVITY_WAIT_SIPI;
else
vmcs12->guest_activity_state = GUEST_ACTIVITY_ACTIVE;

Updated, thanks.

Paolo