Re: [PATCH for-6.0 3/8] spapr/xive: Add "nr-servers" property

2020-11-24 Thread Cédric Le Goater
>> The only other place where the number of vCPUs is used is in >> spapr_xive_dt() to define the vCPU IPI range, which done at >> the machine level again. > > spapr_max_server_number() isn't the number of vCPUs. It is the > number of consecutive vCPU ids the IC might be exposed to, > starting fro

Re: [PATCH for-6.0 3/8] spapr/xive: Add "nr-servers" property

2020-11-23 Thread Greg Kurz
On Mon, 23 Nov 2020 10:56:13 +0100 Cédric Le Goater wrote: > On 11/20/20 6:46 PM, Greg Kurz wrote: > > The sPAPR XIVE object has an "nr-ends" property that is used > > to size the END table. This property is set by the machine > > code to a value derived from spapr_max_server_number(). > > Yes.

Re: [PATCH for-6.0 3/8] spapr/xive: Add "nr-servers" property

2020-11-23 Thread Cédric Le Goater
On 11/20/20 6:46 PM, Greg Kurz wrote: > The sPAPR XIVE object has an "nr-ends" property that is used > to size the END table. This property is set by the machine > code to a value derived from spapr_max_server_number(). Yes. This is done at the machine level. > spapr_max_server_number() is also u

Re: [PATCH for-6.0 3/8] spapr/xive: Add "nr-servers" property

2020-11-23 Thread Greg Kurz
On Mon, 23 Nov 2020 14:52:14 +1100 David Gibson wrote: > On Fri, Nov 20, 2020 at 06:46:41PM +0100, Greg Kurz wrote: > > The sPAPR XIVE object has an "nr-ends" property that is used > > to size the END table. This property is set by the machine > > code to a value derived from spapr_max_server_num

Re: [PATCH for-6.0 3/8] spapr/xive: Add "nr-servers" property

2020-11-22 Thread David Gibson
On Fri, Nov 20, 2020 at 06:46:41PM +0100, Greg Kurz wrote: > The sPAPR XIVE object has an "nr-ends" property that is used > to size the END table. This property is set by the machine > code to a value derived from spapr_max_server_number(). > > spapr_max_server_number() is also used to inform the

[PATCH for-6.0 3/8] spapr/xive: Add "nr-servers" property

2020-11-20 Thread Greg Kurz
The sPAPR XIVE object has an "nr-ends" property that is used to size the END table. This property is set by the machine code to a value derived from spapr_max_server_number(). spapr_max_server_number() is also used to inform the KVM XIVE device about the range of vCPU ids it might be exposed to, i