From e6c866d417d1a09536f489e66c21cf49b7ec60b6 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Thu, 15 Sep 2011 20:49:49 +0000 Subject: pseries: Refactor spapr irq allocation Paulo Bonzini changed the original spapr code, which manually assigned irq numbers for each virtual device, to allocate them automatically from the device initialization. That allowed spapr virtual devices to be constructed with -device, which is a good start. However, the way that patch worked doesn't extend nicely for the future when we want to support devices other than sPAPR VIO devices (e.g. virtio and PCI). This patch rearranges the irq allocation to be global across the sPAPR environment, so it can be used by other bus types as well. Signed-off-by: David Gibson Signed-off-by: Alexander Graf --- hw/spapr_vio.h | 1 - 1 file changed, 1 deletion(-) (limited to 'hw/spapr_vio.h') diff --git a/hw/spapr_vio.h b/hw/spapr_vio.h index 7eb5367653..4fe5f742c2 100644 --- a/hw/spapr_vio.h +++ b/hw/spapr_vio.h @@ -67,7 +67,6 @@ typedef struct VIOsPAPRDevice { typedef struct VIOsPAPRBus { BusState bus; - int irq; } VIOsPAPRBus; typedef struct { -- cgit v1.2.3