Re: [Qemu-devel] [PATCH v2 11/13] spapr_irq: Allow synchronization of a single irq state to KVM

2019-01-14 Thread Cédric Le Goater
On 1/14/19 4:10 PM, Greg Kurz wrote: > On Mon, 14 Jan 2019 09:19:50 +0100 > Cédric Le Goater wrote: > >> On 1/11/19 10:04 PM, Greg Kurz wrote: >>> When using the in-kernel interrupt controller, the state of all irqs is >>> synchronized to KVM at machine reset time. In the case of PHB hotplug, we

Re: [Qemu-devel] [PATCH v2 11/13] spapr_irq: Allow synchronization of a single irq state to KVM

2019-01-14 Thread Greg Kurz
On Mon, 14 Jan 2019 17:29:48 +0100 Cédric Le Goater wrote: > On 1/14/19 4:10 PM, Greg Kurz wrote: > > On Mon, 14 Jan 2019 09:19:50 +0100 > > Cédric Le Goater wrote: > > > >> On 1/11/19 10:04 PM, Greg Kurz wrote: > >>> When using the in-kernel interrupt controller, the state of all irqs is

Re: [Qemu-devel] [PATCH v2 11/13] spapr_irq: Allow synchronization of a single irq state to KVM

2019-01-14 Thread Greg Kurz
On Mon, 14 Jan 2019 09:19:50 +0100 Cédric Le Goater wrote: > On 1/11/19 10:04 PM, Greg Kurz wrote: > > When using the in-kernel interrupt controller, the state of all irqs is > > synchronized to KVM at machine reset time. In the case of PHB hotplug, we > > will need to synchronize LSIs manually.

Re: [Qemu-devel] [PATCH v2 11/13] spapr_irq: Allow synchronization of a single irq state to KVM

2019-01-14 Thread Cédric Le Goater
On 1/11/19 10:04 PM, Greg Kurz wrote: > When using the in-kernel interrupt controller, the state of all irqs is > synchronized to KVM at machine reset time. In the case of PHB hotplug, we > will need to synchronize LSIs manually. Yes. This is because the interrupt sources in the KVM XICS device

[Qemu-devel] [PATCH v2 11/13] spapr_irq: Allow synchronization of a single irq state to KVM

2019-01-11 Thread Greg Kurz
When using the in-kernel interrupt controller, the state of all irqs is synchronized to KVM at machine reset time. In the case of PHB hotplug, we will need to synchronize LSIs manually. Do this for the existing KVM XICS implementation and put a placeholder for the upcoming KVM XIVE.