Re: [Xen-devel] [PATCH v5 1/7] VMX: Statically assign two PI hooks

2016-10-12 Thread Jan Beulich
>>> On 11.10.16 at 02:57, wrote: > +/* > + * In fact, we can remove this hooks inside itself if no new device is in the > + * process of getting assigned and "from" hook is NULL. However, it is not > + * straightforward to find a clear solution, so just leave it here. > + */ > static void vmx_pi_

Re: [Xen-devel] [PATCH v5 1/7] VMX: Statically assign two PI hooks

2016-10-11 Thread Tian, Kevin
> From: Wu, Feng > Sent: Tuesday, October 11, 2016 8:58 AM > > PI hooks: vmx_pi_switch_from() and vmx_pi_switch_to() are > 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 th

[Xen-devel] [PATCH v5 1/7] VMX: Statically assign two PI hooks

2016-10-10 Thread Feng Wu
PI hooks: vmx_pi_switch_from() and vmx_pi_switch_to() are 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()