From: David Gibson Date: Wed, 21 Dec 2011 00:39:42 +0000 Subject: Re: [PATCH V2 4/6] kvm tools: Add PPC64 XICS interrupt controller Message-Id: <20111221003942.GC5188@truffala.fritz.box> List-Id: References: <1323760250-13237-1-git-send-email-matt@ozlabs.org> <1323760250-13237-5-git-send-email-matt@ozlabs.org> <20111214023555.GD21214@truffala.fritz.box> <4EEFE1F8.9040501@ozlabs.org> In-Reply-To: <4EEFE1F8.9040501@ozlabs.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Matt Evans Cc: kvm@vger.kernel.org, kvm-ppc@vger.kernel.org, penberg@kernel.org, asias.hejun@gmail.com, levinsasha928@gmail.com, gorcunov@gmail.com, aik@ozlabs.ru On Tue, Dec 20, 2011 at 12:16:40PM +1100, Matt Evans wrote: > Hi David, > > On 14/12/11 13:35, David Gibson wrote: > > On Tue, Dec 13, 2011 at 06:10:48PM +1100, Matt Evans wrote: > >> This patch adds XICS emulation code (heavily borrowed from QEMU), and wires > >> this into kvm_cpu__irq() to fire a CPU IRQ via KVM. A device tree entry is > >> also added. IPIs work, xics_alloc_irqnum() is added to allocate an external > >> IRQ (which will later be used by the PHB PCI code) and finally, kvm__irq_line() > >> can be called to raise an IRQ on XICS.\ > > > > Hrm, looks like you took a somewhat old version of xics.c from qemu. > > It dangerously uses the same variable names for global irq numbers and > > numbers local to one ics unit. It used to have at least one bug > > caused by confusing the two, which I'm not sure if you've also copied. > > Just had a look at the diffs between this and hw/xics.c from the master branch > in your qemu-impreza.git (which I based the kvmtool stuff on) and I can't see > anything standing out. > > Is there a particular commit/patch/variable name you have in mind that I can > search for? Sorry, my mistake, I was looking in the wrong place. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson