Re: [Xen-devel] [PATCH v6 4/7] VMX: Make sure PI is in proper state before install the hooks

2016-10-28 Thread Jan Beulich
>>> On 28.10.16 at 04:37, wrote: > We may hit the last ASSERT() in vmx_vcpu_block in the current code, > since vmx_vcpu_block() may get called before vmx_pi_switch_to() > has been installed or executed. Here We use cmpxchg to update > the NDST field, this can make sure we only

[Xen-devel] [PATCH v6 4/7] VMX: Make sure PI is in proper state before install the hooks

2016-10-27 Thread Feng Wu
We may hit the last ASSERT() in vmx_vcpu_block in the current code, since vmx_vcpu_block() may get called before vmx_pi_switch_to() has been installed or executed. Here We use cmpxchg to update the NDST field, this can make sure we only update the NDST when vmx_pi_switch_to() has not been called.