From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:36933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGjsB-0006DJ-6I for qemu-devel@nongnu.org; Sat, 16 Mar 2013 01:41:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGjsA-0007Cl-5I for qemu-devel@nongnu.org; Sat, 16 Mar 2013 01:41:39 -0400 Message-ID: <1363412487.1244.21.camel@pasglop> From: Benjamin Herrenschmidt Date: Sat, 16 Mar 2013 06:41:27 +0100 In-Reply-To: References: <1363226008-26639-1-git-send-email-david@gibson.dropbear.id.au> <1363226008-26639-6-git-send-email-david@gibson.dropbear.id.au> <89E98310-17EE-4BFD-B8F6-A8FCC23FE5F1@suse.de> <1363403667.1244.0.camel@pasglop> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 5/5] pseries: Move XICS initialization before cpu initialization List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Michael Ellerman , Paul Mackerras , "qemu-ppc@nongnu.org list:PowerPC" , qemu-devel qemu-devel , David Gibson On Sat, 2013-03-16 at 06:33 +0100, Alexander Graf wrote: > >> We're changing that notion in the in-kernel XICS discussions. The > flow will look like this: > >> > >> * create vcpus > >> * create XICS > >> * foreach (vcpu) > >> * enable_cap(vcpu, CAP_XICS_SERVER, xics_handle) > > > > This is stupid. Why have the VCPU initialize itself for non-kernel > > interrupts and *then* switch it over ? > > Because non-kernel initialization is a nop. And ? Ben.