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

2020-11-06 Thread Paolo Bonzini
On 06/11/20 07:51, yadong...@intel.com 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->arc

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

2020-11-05 Thread yadong . qi
From: Yadong Qi Background: We have a lightweight HV, it needs INIT-VMExit and SIPI-VMExit to wake-up APs for guests since it do not monitor the Local APIC. But currently virtual wait-for-SIPI(WFS) state is not supported in nVMX, so when running on top of KVM, the L1 HV cannot receive the INIT-VM