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

2017-06-23 Thread Jan Beulich
>>> On 23.06.17 at 10:33, wrote: > On Fri, Jun 23, 2017 at 01:58:52AM -0600, Jan Beulich wrote: > On 23.06.17 at 06:22, wrote: >>> On Fri, Jun 16, 2017 at 09:09:13AM -0600, Jan Beulich wrote: >>> On 24.05.17 at 08:56, wrote: > +{ > +pi_cpu = cpumask_cycle(pi_cpu, &cpu

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

2017-06-23 Thread Chao Gao
On Fri, Jun 23, 2017 at 01:58:52AM -0600, Jan Beulich wrote: On 23.06.17 at 06:22, wrote: >> On Fri, Jun 16, 2017 at 09:09:13AM -0600, Jan Beulich wrote: >> On 24.05.17 at 08:56, wrote: +{ +pi_cpu = cpumask_cycle(pi_cpu, &cpu_online_map); >>> >>>With this, how could

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

2017-06-23 Thread Jan Beulich
>>> On 23.06.17 at 06:22, wrote: > On Fri, Jun 16, 2017 at 09:09:13AM -0600, Jan Beulich wrote: > On 24.05.17 at 08:56, wrote: >>> +{ >>> +pi_cpu = cpumask_cycle(pi_cpu, &cpu_online_map); >> >>With this, how could the CPU be offline by the time you make it >>back to the check abov

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

2017-06-22 Thread Chao Gao
On Fri, Jun 16, 2017 at 09:09:13AM -0600, Jan Beulich wrote: On 24.05.17 at 08:56, 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

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

2017-06-16 Thread Jan Beulich
>>> On 24.05.17 at 08:56, 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 vCPUs may be bl

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

2017-05-23 Thread Chao Gao
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 vCPUs may be blocked in one pCPU's PI blocking list. When