[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 03/58] spapr: make irq customizable via qdev
From: |
David Gibson |
Subject: |
Re: [Qemu-devel] [PATCH 03/58] spapr: make irq customizable via qdev |
Date: |
Thu, 15 Sep 2011 13:15:29 +1000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Wed, Sep 14, 2011 at 10:42:27AM +0200, Alexander Graf wrote:
> From: Paolo Bonzini <address@hidden>
>
> This also lets the user see the irq in "info qtree".
Um.. I'm a bit confused by this one. The previous patch comment
implies it's a preparation for this, but then you add the new irq
property to the BusInfo, rather than to the macro that goes into the
DeviceInfos. Why does this one go in the bus, rather than the device?
>
> Signed-off-by: Paolo Bonzini <address@hidden>
> Cc: Alexander Graf <address@hidden>
> Cc: David Gibson <address@hidden>
> Signed-off-by: Alexander Graf <address@hidden>
> ---
> hw/spapr_vio.c | 8 +++++++-
> 1 files changed, 7 insertions(+), 1 deletions(-)
>
> diff --git a/hw/spapr_vio.c b/hw/spapr_vio.c
> index ba2e1c1..0546ccb 100644
> --- a/hw/spapr_vio.c
> +++ b/hw/spapr_vio.c
> @@ -52,6 +52,10 @@
> static struct BusInfo spapr_vio_bus_info = {
> .name = "spapr-vio",
> .size = sizeof(VIOsPAPRBus),
> + .props = (Property[]) {
> + DEFINE_PROP_UINT32("irq", VIOsPAPRDevice, vio_irq_num, 0), \
> + DEFINE_PROP_END_OF_LIST(),
> + },
> };
>
> VIOsPAPRDevice *spapr_vio_find_by_reg(VIOsPAPRBus *bus, uint32_t reg)
> @@ -604,7 +608,9 @@ static int spapr_vio_busdev_init(DeviceState *qdev,
> DeviceInfo *qinfo)
> }
>
> dev->qdev.id = id;
> - dev->vio_irq_num = bus->irq++;
> + if (!dev->vio_irq_num) {
> + dev->vio_irq_num = bus->irq++;
> + }
> dev->qirq = spapr_find_qirq(spapr, dev->vio_irq_num);
>
> rtce_init(dev);
--
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
- [Qemu-devel] [PULL 00/58] ppc patch queue 2011-09-14, Alexander Graf, 2011/09/14
- [Qemu-devel] [PATCH 08/58] PPC: Set MPIC IDE for IPI to 0, Alexander Graf, 2011/09/14
- [Qemu-devel] [PATCH 06/58] PPC: Extend MPIC MMIO range, Alexander Graf, 2011/09/14
- [Qemu-devel] [PATCH 04/58] PPC: Move openpic to target specific code compilation, Alexander Graf, 2011/09/14
- [Qemu-devel] [PATCH 15/58] PPC: bamboo: Move host fdt copy to target, Alexander Graf, 2011/09/14
- [Qemu-devel] [PATCH 12/58] PPC: E500: create multiple envs, Alexander Graf, 2011/09/14
- [Qemu-devel] [PATCH 03/58] spapr: make irq customizable via qdev, Alexander Graf, 2011/09/14
- Re: [Qemu-devel] [PATCH 03/58] spapr: make irq customizable via qdev,
David Gibson <=
- [Qemu-devel] [PATCH 30/58] MPC8544DS: Generate CPU nodes on init, Alexander Graf, 2011/09/14
- [Qemu-devel] [PATCH 21/58] PPC: KVM: Add stubs for kvm helper functions, Alexander Graf, 2011/09/14
- [Qemu-devel] [PATCH 22/58] PPC: E500: Update freqs for all CPUs, Alexander Graf, 2011/09/14
- [Qemu-devel] [PATCH 09/58] PPC: MPIC: Remove read functionality for WO registers, Alexander Graf, 2011/09/14
- [Qemu-devel] [PATCH 39/58] pseries: More complete WIMG validation in H_ENTER code, Alexander Graf, 2011/09/14
- [Qemu-devel] [PATCH 32/58] PPC: Add new target config for pseries, Alexander Graf, 2011/09/14
- [Qemu-devel] [PATCH 05/58] PPC: Add CPU local MMIO regions to MPIC, Alexander Graf, 2011/09/14