Re: [Xen-devel] [PATCH v12 1/2] vmx: VT-d posted-interrupt core logic handling

2016-02-23 Thread Jan Beulich
>>> On 23.02.16 at 05:59, wrote: > >> -Original Message- >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Sent: Monday, February 22, 2016 9:08 PM >> To: Wu, Feng >> Cc: Andrew Cooper ; Dario Faggioli >>

Re: [Xen-devel] [PATCH v12 1/2] vmx: VT-d posted-interrupt core logic handling

2016-02-22 Thread Wu, Feng
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Monday, February 22, 2016 9:08 PM > To: Wu, Feng > Cc: Andrew Cooper ; Dario Faggioli > ; George Dunlap ; >

Re: [Xen-devel] [PATCH v12 1/2] vmx: VT-d posted-interrupt core logic handling

2016-02-22 Thread Jan Beulich
>>> On 19.02.16 at 02:55, wrote: > +static void vmx_vcpu_block(struct vcpu *v) > +{ > +unsigned long flags; > +unsigned int dest; > +spinlock_t *old_lock; > +spinlock_t *pi_block_list_lock = > +_cpu(pi_blocked_vcpu_lock, v->processor); > +

[Xen-devel] [PATCH v12 1/2] vmx: VT-d posted-interrupt core logic handling

2016-02-18 Thread Feng Wu
This is the core logic handling for VT-d posted-interrupts. Basically it deals with how and when to update posted-interrupts during the following scenarios: - vCPU is preempted - vCPU is slept - vCPU is blocked When vCPU is preempted/slept, we update the posted-interrupts during scheduling by