Re: [PATCH for-5.2] spapr/xive: Create IPIs in KVM on demand

2020-11-16 Thread Greg Kurz
On Mon, 16 Nov 2020 14:43:12 +0100 Cédric Le Goater wrote: > On 11/13/20 4:14 PM, Greg Kurz wrote: > > Recent commit acbdb9956fe9 introduced a dedicated path to create > > IPIs in KVM. This is done from under kvmppc_xive_cpu_connect() with > > the assumption that the IPI number is equal to the vC

Re: [PATCH for-5.2] spapr/xive: Create IPIs in KVM on demand

2020-11-16 Thread Cédric Le Goater
On 11/13/20 4:14 PM, Greg Kurz wrote: > Recent commit acbdb9956fe9 introduced a dedicated path to create > IPIs in KVM. This is done from under kvmppc_xive_cpu_connect() with > the assumption that the IPI number is equal to the vCPU id. The > latter is wrong: the guest chooses an arbitrary LISN fro

[PATCH for-5.2] spapr/xive: Create IPIs in KVM on demand

2020-11-13 Thread Greg Kurz
Recent commit acbdb9956fe9 introduced a dedicated path to create IPIs in KVM. This is done from under kvmppc_xive_cpu_connect() with the assumption that the IPI number is equal to the vCPU id. The latter is wrong: the guest chooses an arbitrary LISN from the "ibm,xive-lisn-ranges" and assigns it to