Re: [Xen-devel] [PATCH v4 3/4] VT-d PI: restrict the vcpu number on a given pcpu

2017-07-21 Thread George Dunlap
On Fri, Jul 7, 2017 at 7:48 AM, Chao Gao wrote: > Currently, a blocked vCPU is put in its pCPU's pi blocking list. If > too many vCPUs are blocked on a given pCPU, it will incur that the list > grows too long. After a simple analysis, there are 32k domains and > 128 vcpu per domain, thus about 4M

Re: [Xen-devel] [PATCH v4 3/4] VT-d PI: restrict the vcpu number on a given pcpu

2017-07-10 Thread Chao Gao
On Mon, Jul 10, 2017 at 03:36:52AM -0600, Jan Beulich wrote: On 10.07.17 at 03:17, wrote: >> On Fri, Jul 07, 2017 at 09:57:47AM -0600, Jan Beulich wrote: >> On 07.07.17 at 08:48, wrote: +#define remote_pbl_operation_begin(flags) \ +({

Re: [Xen-devel] [PATCH v4 3/4] VT-d PI: restrict the vcpu number on a given pcpu

2017-07-10 Thread Jan Beulich
>>> On 10.07.17 at 03:17, wrote: > On Fri, Jul 07, 2017 at 09:57:47AM -0600, Jan Beulich wrote: > On 07.07.17 at 08:48, wrote: >>> +#define remote_pbl_operation_begin(flags) \ >>> +({ \ >>> +spin_lock_irqsave(&remo

Re: [Xen-devel] [PATCH v4 3/4] VT-d PI: restrict the vcpu number on a given pcpu

2017-07-09 Thread Chao Gao
On Fri, Jul 07, 2017 at 09:57:47AM -0600, Jan Beulich wrote: On 07.07.17 at 08:48, wrote: >> --- a/xen/arch/x86/hvm/vmx/vmx.c >> +++ b/xen/arch/x86/hvm/vmx/vmx.c >> @@ -95,22 +95,91 @@ static DEFINE_PER_CPU(struct vmx_pi_blocking_vcpu, >> vmx_pi_blocking); >> uint8_t __read_mostly posted_in

Re: [Xen-devel] [PATCH v4 3/4] VT-d PI: restrict the vcpu number on a given pcpu

2017-07-07 Thread Jan Beulich
>>> On 07.07.17 at 08:48, wrote: > --- a/xen/arch/x86/hvm/vmx/vmx.c > +++ b/xen/arch/x86/hvm/vmx/vmx.c > @@ -95,22 +95,91 @@ static DEFINE_PER_CPU(struct vmx_pi_blocking_vcpu, > vmx_pi_blocking); > uint8_t __read_mostly posted_intr_vector; > static uint8_t __read_mostly pi_wakeup_vector; > >