Received: from eggs.gnu.org ([208.118.235.92]:35779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tak60-0004SG-Hk for qemu-devel@nongnu.org; Tue, 20 Nov 2012 04:26:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tak5u-0006Md-H0 for qemu-devel@nongnu.org; Tue, 20 Nov 2012 04:26:20 -0500 Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii From: Alexander Graf In-Reply-To: <20121119224703.GB18362@truffula.fritz.box> Date: Tue, 20 Nov 2012 10:26:06 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1352774820-22804-1-git-send-email-david@gibson.dropbear.id.au> <1352774820-22804-4-git-send-email-david@gibson.dropbear.id.au> <1353354860.23412.93.camel@pasglop> <20121119224703.GB18362@truffula.fritz.box> Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH 03/12] pseries: Move XICS initialization before cpu initialization List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: Michael Ellerman , qemu-ppc@nongnu.org, qemu-devel@nongnu.org On 19.11.2012, at 23:47, David Gibson wrote: > On Tue, Nov 20, 2012 at 06:54:20AM +1100, Benjamin Herrenschmidt = wrote: >> On Mon, 2012-11-19 at 17:22 +0100, Alexander Graf wrote: >>>> Currently, the pseries machine initializes the cpus, then the XICS >>>> interrupt controller. However, to support the upcoming in-kernel = XICS >>>> implementation we will need to initialize the irq controller before = the >>>> vcpus. This patch makes the necesssary rearrangement. This means = the >>>> xics init code can no longer auto-detect the number of cpus = ("interrupt >>>> servers" in XICS terminology) and so we must pass that in = explicitly from >>>> the platform code. >>>=20 >>> Does this still hold true with the new in-kernel interrupt = controller workflow? >>=20 >> We need to look into this. The in-kernel ICPs will still certainly be >> created early along with the VCPUs, however we might be able to delay >> the creation of the qemu emulation when not using the former. >=20 > I'd really prefer not to have two different initialization orders in > qemu though. I think we'll want the ICP initialization first for CPU > hotplug one day anyway. I'd just leave this patch out until you have an implementation of the = new in-kernel interrupt controller model as discussed during KVM Forum. = If it still makes sense by then, we can always apply it along with it = :). You most likely want to reshuffle code by then anyway, so this patch = would just be needless churn. Alex