>>> 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
>>
> -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 ;
>
>>> 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);
> +
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