Re: [Xen-devel] [PATCH v6 1/7] VMX: Permanently assign PI hook vmx_pi_switch_to()

2016-10-30 Thread Wu, Feng
Subject: Re: [Xen-devel] [PATCH v6 1/7] VMX: Permanently assign PI hook > vmx_pi_switch_to() > > >>> On 28.10.16 at 15:04, wrote: > >>>> On 28.10.16 at 04:37, wrote: > >> --- a/xen/arch/x86/hvm/vmx/vmx.c > >> +++ b/xen/arch/x86/hvm/vmx/

Re: [Xen-devel] [PATCH v6 1/7] VMX: Permanently assign PI hook vmx_pi_switch_to()

2016-10-28 Thread Jan Beulich
>>> On 28.10.16 at 15:04, wrote: On 28.10.16 at 04:37, wrote: >> --- a/xen/arch/x86/hvm/vmx/vmx.c >> +++ b/xen/arch/x86/hvm/vmx/vmx.c >> @@ -221,9 +221,14 @@ void vmx_pi_hooks_deassign(struct domain *d) >> ASSERT(d->arch.hvm_domain.vmx.vcpu_block); >> >> d->arch.hvm_domain.vmx.vc

Re: [Xen-devel] [PATCH v6 1/7] VMX: Permanently assign PI hook vmx_pi_switch_to()

2016-10-28 Thread Jan Beulich
>>> On 28.10.16 at 04:37, wrote: > PI hook vmx_pi_switch_to() is needed even when any previously > assigned device is detached from the domain. Since 'SN' bit is > also used to control the CPU side PI and we change the state of > SN bit in these two functions, There's just one function you've men

[Xen-devel] [PATCH v6 1/7] VMX: Permanently assign PI hook vmx_pi_switch_to()

2016-10-27 Thread Feng Wu
PI hook vmx_pi_switch_to() is needed even when any previously assigned device is detached from the domain. Since 'SN' bit is also used to control the CPU side PI and we change the state of SN bit in these two functions, then evaluate this bit in vmx_deliver_posted_intr() when trying to deliver the