Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-10 Thread Wu, Feng
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Friday, July 10, 2015 4:50 PM > To: Wu, Feng > Cc: Andrew Cooper; george.dun...@eu.citrix.com; Tian, Kevin; Zhang, Yang Z; > xen-devel@lists.xen.org; k...@xen.org > Subject: Re: [Xen-devel] [

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-10 Thread Jan Beulich
>>> On 10.07.15 at 09:29, wrote: >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Sent: Friday, July 10, 2015 2:32 PM >> >>> On 10.07.15 at 08:21, wrote: >> >> From: Jan Beulich [mailto:jbeul...@suse.com] >> >> Sent: Thursday, July 09, 2015 3:26 PM >> >> >>> On 09.07.15 at 00:49, wrote: >> >>

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-10 Thread Wu, Feng
t;> To: Wu, Feng; Tian, Kevin > >> Cc: Andrew Cooper; george.dun...@eu.citrix.com; Zhang, Yang Z; > >> xen-devel@lists.xen.org; k...@xen.org > >> Subject: RE: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when > vCPU > >> is blocked > >> >

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-09 Thread Jan Beulich
; >> xen-devel@lists.xen.org; k...@xen.org >> Subject: RE: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU >> is blocked >> >> >>> On 09.07.15 at 00:49, wrote: >> >> From: Andrew Cooper [mailto:andrew.coop...@citrix.com] >> &g

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-09 Thread Wu, Feng
devel] [v3 12/15] vmx: posted-interrupt handling when vCPU > is blocked > > >>> On 09.07.15 at 00:49, wrote: > >> From: Andrew Cooper [mailto:andrew.coop...@citrix.com] > >> Sent: Wednesday, July 08, 2015 9:09 PM > >> On 08/07/2015 13:46, Jan Beulich

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-09 Thread Jan Beulich
>>> On 09.07.15 at 00:49, wrote: >> From: Andrew Cooper [mailto:andrew.coop...@citrix.com] >> Sent: Wednesday, July 08, 2015 9:09 PM >> On 08/07/2015 13:46, Jan Beulich wrote: >> On 08.07.15 at 13:00, wrote: >> >>> @@ -1848,6 +1869,33 @@ static struct hvm_function_table __initdata >> >>> vm

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-08 Thread Tian, Kevin
> From: Andrew Cooper [mailto:andrew.coop...@citrix.com] > Sent: Wednesday, July 08, 2015 9:09 PM > > On 08/07/2015 13:46, Jan Beulich wrote: > On 08.07.15 at 13:00, wrote: > >>> @@ -1848,6 +1869,33 @@ static struct hvm_function_table __initdata > >>> vmx_function_table = { > >>> .enabl

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-08 Thread Tian, Kevin
> From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Wednesday, July 08, 2015 8:46 PM > > >>> On 08.07.15 at 13:00, wrote: > >> @@ -1848,6 +1869,33 @@ static struct hvm_function_table __initdata > >> vmx_function_table = { > >> .enable_msr_exit_interception = vmx_enable_msr_exit_intercepti

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-08 Thread Andrew Cooper
On 08/07/2015 13:46, Jan Beulich wrote: On 08.07.15 at 13:00, wrote: >>> @@ -1848,6 +1869,33 @@ static struct hvm_function_table __initdata >>> vmx_function_table = { >>> .enable_msr_exit_interception = vmx_enable_msr_exit_interception, >>> }; >>> >>> +/* >>> + * Handle VT-d posted-inte

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-08 Thread Jan Beulich
>>> On 08.07.15 at 13:00, wrote: >> @@ -1848,6 +1869,33 @@ static struct hvm_function_table __initdata >> vmx_function_table = { >> .enable_msr_exit_interception = vmx_enable_msr_exit_interception, >> }; >> >> +/* >> + * Handle VT-d posted-interrupt when VCPU is blocked. >> + */ >> +static

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-08 Thread Wu, Feng
> -Original Message- > From: Tian, Kevin > Sent: Wednesday, July 08, 2015 7:00 PM > To: Wu, Feng; xen-devel@lists.xen.org > Cc: k...@xen.org; jbeul...@suse.com; andrew.coop...@citrix.com; Zhang, > Yang Z; george.dun...@eu.citrix.com > Subject: RE: [v3 12/15] vmx: posted-interrupt handling

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-08 Thread Tian, Kevin
> From: Wu, Feng > Sent: Wednesday, June 24, 2015 1:18 PM > > This patch includes the following aspects: > - Add a global vector to wake up the blocked vCPU > when an interrupt is being posted to it (This > part was sugguested by Yang Zhang ). > - Adds a new per-vCPU tasklet to wakeup the bloc

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-08 Thread Jan Beulich
>>> On 08.07.15 at 12:36, wrote: >> From: Andrew Cooper [mailto:andrew.coop...@citrix.com] >> Sent: Tuesday, June 30, 2015 1:07 AM >> On 24/06/15 06:18, Feng Wu wrote: >> > @@ -148,11 +161,19 @@ static int vmx_vcpu_initialise(struct vcpu *v) >> > if ( v->vcpu_id == 0 ) >> > v->arch.u

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-08 Thread Wu, Feng
> -Original Message- > From: Andrew Cooper [mailto:andrew.coop...@citrix.com] > Sent: Tuesday, June 30, 2015 1:07 AM > To: Wu, Feng; xen-devel@lists.xen.org > Cc: k...@xen.org; jbeul...@suse.com; Tian, Kevin; Zhang, Yang Z; > george.dun...@eu.citrix.com > Subject: Re: [v3 12/15] vmx: post

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-02 Thread Wu, Feng
ng Z > Subject: Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU > is blocked > > On 02/07/15 13:38, Dario Faggioli wrote: > > On Thu, 2015-07-02 at 13:16 +0100, Andrew Cooper wrote: > >> On 02/07/15 13:04, Dario Faggioli wrote: > >>> On Thu,

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-02 Thread Andrew Cooper
On 02/07/15 13:38, Dario Faggioli wrote: > On Thu, 2015-07-02 at 13:16 +0100, Andrew Cooper wrote: >> On 02/07/15 13:04, Dario Faggioli wrote: >>> On Thu, 2015-07-02 at 11:30 +0100, Andrew Cooper wrote: I can't currently decide whether this will be quicker or slower overall, or (most like

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-02 Thread Dario Faggioli
On Thu, 2015-07-02 at 13:16 +0100, Andrew Cooper wrote: > On 02/07/15 13:04, Dario Faggioli wrote: > > On Thu, 2015-07-02 at 11:30 +0100, Andrew Cooper wrote: > >> I can't currently decide whether this will be quicker or slower overall, > >> or (most likely) it will even out to equal in the genera

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-02 Thread Andrew Cooper
On 02/07/15 13:04, Dario Faggioli wrote: > On Thu, 2015-07-02 at 11:30 +0100, Andrew Cooper wrote: >> On 02/07/15 09:30, Dario Faggioli wrote: >>> It is, therefore, not effective in making sure that, even with only one >>> notification, you only kick the interested vcpu. >>> >>> This is the third t

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-02 Thread Wu, Feng
ng Z > Subject: Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU > is blocked > > On Thu, 2015-07-02 at 11:30 +0100, Andrew Cooper wrote: > > On 02/07/15 09:30, Dario Faggioli wrote: > > > > It is, therefore, not effective in making sure that, even wit

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-02 Thread Dario Faggioli
On Thu, 2015-07-02 at 11:30 +0100, Andrew Cooper wrote: > On 02/07/15 09:30, Dario Faggioli wrote: > > It is, therefore, not effective in making sure that, even with only one > > notification, you only kick the interested vcpu. > > > > This is the third time that I ask: > > (1) whether it is poss

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-02 Thread Wu, Feng
.com > Subject: Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU > is blocked > > On 02/07/15 09:30, Dario Faggioli wrote: > > On Thu, 2015-07-02 at 04:27 +, Wu, Feng wrote: > > > >>>>>

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-02 Thread Wu, Feng
.com > Subject: Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU > is blocked > > On Thu, 2015-07-02 at 08:58 +, Wu, Feng wrote: > > > > -Original Message- > > > From: Dario Faggioli [mailto:dario.faggi...@citrix.com] > > > >

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-02 Thread Andrew Cooper
On 02/07/15 09:30, Dario Faggioli wrote: > On Thu, 2015-07-02 at 04:27 +, Wu, Feng wrote: > > +list_for_each_entry(vmx, &per_cpu(pi_blocked_vcpu, cpu), > +pi_blocked_vcpu_list) > +if ( vmx->pi_desc.on ) > +tasklet_schedule(&vmx->pi

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-02 Thread Dario Faggioli
On Thu, 2015-07-02 at 08:58 +, Wu, Feng wrote: > > -Original Message- > > From: Dario Faggioli [mailto:dario.faggi...@citrix.com] > > > > This is the third time that I ask: > > (1) whether it is possible to have more vcpus queued on one pcpu PI > > blocked list with desc.on (I re

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-02 Thread Wu, Feng
.com > Subject: Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU > is blocked > > On Thu, 2015-07-02 at 04:27 +, Wu, Feng wrote: > > > > > > +list_for_each_entry(vmx, &per_cpu(pi_blocked_vcpu, cpu), > > > > > +

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-02 Thread Dario Faggioli
On Thu, 2015-07-02 at 04:27 +, Wu, Feng wrote: > > > > +list_for_each_entry(vmx, &per_cpu(pi_blocked_vcpu, cpu), > > > > +pi_blocked_vcpu_list) > > > > +if ( vmx->pi_desc.on ) > > > > +tasklet_schedule(&vmx->pi_vcpu_wakeup_tasklet); > > > > > > T

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-01 Thread Wu, Feng
.com > Subject: Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU > is blocked > > On Tue, 2015-06-30 at 11:11 +0100, Andrew Cooper wrote: > > On 24/06/15 06:18, Feng Wu wrote: > > > > +/* > > > + * Handle VT-d posted-interrupt when VCPU is b

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-01 Thread Wu, Feng
> -Original Message- > From: Andrew Cooper [mailto:andrew.coop...@citrix.com] > Sent: Tuesday, June 30, 2015 6:12 PM > To: Wu, Feng; xen-devel@lists.xen.org > Cc: k...@xen.org; jbeul...@suse.com; Tian, Kevin; Zhang, Yang Z; > george.dun...@eu.citrix.com > Subject: Re: [v3 12/15] vmx: post

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-07-01 Thread Dario Faggioli
On Tue, 2015-06-30 at 11:11 +0100, Andrew Cooper wrote: > On 24/06/15 06:18, Feng Wu wrote: > > +/* > > + * Handle VT-d posted-interrupt when VCPU is blocked. > > + */ > > +static void pi_wakeup_interrupt(struct cpu_user_regs *regs) > > +{ > > +struct arch_vmx_struct *vmx; > > +unsigned in

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-06-30 Thread Andrew Cooper
On 24/06/15 06:18, Feng Wu wrote: > @@ -1848,6 +1869,33 @@ static struct hvm_function_table __initdata > vmx_function_table = { > .enable_msr_exit_interception = vmx_enable_msr_exit_interception, > }; > > +/* > + * Handle VT-d posted-interrupt when VCPU is blocked. > + */ > +static void pi

Re: [Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-06-29 Thread Andrew Cooper
On 24/06/15 06:18, Feng Wu wrote: > This patch includes the following aspects: > - Add a global vector to wake up the blocked vCPU > when an interrupt is being posted to it (This > part was sugguested by Yang Zhang ). > - Adds a new per-vCPU tasklet to wakeup the blocked > vCPU. It can be use

[Xen-devel] [v3 12/15] vmx: posted-interrupt handling when vCPU is blocked

2015-06-23 Thread Feng Wu
This patch includes the following aspects: - Add a global vector to wake up the blocked vCPU when an interrupt is being posted to it (This part was sugguested by Yang Zhang ). - Adds a new per-vCPU tasklet to wakeup the blocked vCPU. It can be used in the case vcpu_unblock cannot be called