From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:58966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gj57v-000746-Hh for qemu-devel@nongnu.org; Mon, 14 Jan 2019 11:30:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gj57u-0007a0-Pu for qemu-devel@nongnu.org; Mon, 14 Jan 2019 11:30:15 -0500 Received: from 9.mo173.mail-out.ovh.net ([46.105.72.44]:43538) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gj57u-0007Y4-KJ for qemu-devel@nongnu.org; Mon, 14 Jan 2019 11:30:14 -0500 Received: from player696.ha.ovh.net (unknown [10.109.146.82]) by mo173.mail-out.ovh.net (Postfix) with ESMTP id 966B9E93DD for ; Mon, 14 Jan 2019 17:30:11 +0100 (CET) References: <154724039526.525985.3172545257507998890.stgit@bahia.lan> <154724066386.525985.7102226604937744914.stgit@bahia.lan> <20190114161020.297ac3b2@bahia.lan> From: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= Message-ID: Date: Mon, 14 Jan 2019 17:29:48 +0100 MIME-Version: 1.0 In-Reply-To: <20190114161020.297ac3b2@bahia.lan> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 11/13] spapr_irq: Allow synchronization of a single irq state to KVM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Greg Kurz Cc: David Gibson , qemu-devel@nongnu.org, qemu-ppc@nongnu.org, qemu-s390x@nongnu.org, Alexey Kardashevskiy , Michael Roth , Paolo Bonzini , "Michael S. Tsirkin" , Marcel Apfelbaum , Eduardo Habkost , David Hildenbrand , Cornelia Huck , Gerd Hoffmann , Dmitry Fleytman , Thomas Huth On 1/14/19 4:10 PM, Greg Kurz wrote: > On Mon, 14 Jan 2019 09:19:50 +0100 > C=C3=A9dric Le Goater wrote: >=20 >> 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. =20 >> >> Yes. This is because the interrupt sources in the KVM XICS device have= =20 >> already been initialized as MSIs.=20 >> >> Can not we reset the source when it is claimed ?=20 >> >> An alternative solution would be to initialize the SPAPR_IRQ_PCI_LSI r= ange=20 >> as LSIs at a KVM level. >> >=20 > I don't really want to add some dependency to sPAPR code in KVM XICS...= what > about claiming LSIs for all possible PHBs at machine init time ? you can not claim IRQ numbers twice. So if a new PHB is hot-plugged,=20 it will fail the claim its LSIs. C. =20