RE: [PATCH] KVM: x86: emulate wait-for-SIPI and SIPI-VMExit

2020-11-05 Thread Qi, Yadong
> There is a problem in this patch, in that this change is incorrect: > > > > > @@ -2847,7 +2847,8 @@ void kvm_apic_accept_events(struct kvm_vcpu > *vcpu) > > */ > > if (kvm_vcpu_latch_init(vcpu)) { > > WARN_ON_ONCE(vcpu->arch.mp_state == > KVM_MP_STATE_INIT_RECEIVED); > > -

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

2020-11-05 Thread Paolo Bonzini
On 22/09/20 07:23, yadong...@intel.com wrote: 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

RE: [PATCH] KVM: x86: emulate wait-for-SIPI and SIPI-VMExit

2020-11-01 Thread Qi, Yadong
tt...@google.com; > j...@8bytes.org; t...@linutronix.de; mi...@redhat.com; b...@alien8.de; > h...@zytor.com; liran.a...@oracle.com; nikita.leshche...@oracle.com; Gao, > Chao ; Tian, Kevin ; Chen, Luhai > ; Zhu, Bing ; Wang, Kai Z > > Subject: Re: [PATCH] KVM: x86: emulate wait-for-SIPI

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

2020-09-26 Thread Paolo Bonzini
On 27/09/20 03:51, Qi, Yadong wrote: >> Subject: RE: [PATCH] KVM: x86: emulate wait-for-SIPI and SIPI-VMExit >> >>> Again, this looks good but it needs testcases. >> >> Yes, the unit test development is WIP. >> > > Hi, Paolo > > I have sent out

RE: [PATCH] KVM: x86: emulate wait-for-SIPI and SIPI-VMExit

2020-09-26 Thread Qi, Yadong
> Subject: RE: [PATCH] KVM: x86: emulate wait-for-SIPI and SIPI-VMExit > > > Again, this looks good but it needs testcases. > > Yes, the unit test development is WIP. > Hi, Paolo I have sent out the unit test patch. https://patchwork.kernel.org/patch/11799305/ Could you h

RE: [PATCH] KVM: x86: emulate wait-for-SIPI and SIPI-VMExit

2020-09-22 Thread Qi, Yadong
> Again, this looks good but it needs testcases. Yes, the unit test development is WIP. Best Regard Yadong

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

2020-09-22 Thread Paolo Bonzini
On 22/09/20 07:23, yadong...@intel.com wrote: > 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 r

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

2020-09-21 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