[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH 01/58] spapr: proper qdevification
From: |
David Gibson |
Subject: |
Re: [Qemu-ppc] [PATCH 01/58] spapr: proper qdevification |
Date: |
Thu, 15 Sep 2011 13:14:37 +1000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Wed, Sep 14, 2011 at 10:42:25AM +0200, Alexander Graf wrote:
> From: Paolo Bonzini <address@hidden>
>
> Right now the spapr devices cannot be instantiated with -device,
> because the IRQs need to be passed to the spapr_*_create functions.
> Do this instead in the bus's init wrapper.
>
> This is particularly important with the conversion from scsi-disk
> to scsi-{cd,hd} that Markus made. After his patches, if you
> specify a scsi-cd device attached to an if=none drive, the default
> VSCSI controller will not be created and, without qdevification,
> you will not be able to add yours.
>
> NOTE from agraf: added small compile fix
Thanks for fixing this, Paolo. Since writing that code, I've realised
it doesn't really fit the model correctly, but haven't gotten around
to fixing it yet.
I will make a later patch to move the irq allocation from the vio bus
to the xics itself, which will matter once we add PCI and/or other
busses.
A question about qdev stuff. Under PAPR, there is generally only
supposed to be one SCSI target (disk / cd / whatever) per virtual scsi
bus. But the generic qdev code will, by default, keep assigning
devices to the existing bus until it's full. Any thoughts on how to
sanely change that behaviour on a per-machine basis?
We'll have a similar problem later on with PCI - PAPR machines usually
only have one device per host bridge, for better isolation.
--
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-ppc] [PATCH 53/58] openpic: Unfold read_IRQreg, Alexander Graf, 2011/09/14
[Qemu-ppc] [PATCH 02/58] spapr: prepare for qdevification of irq, Alexander Graf, 2011/09/14
[Qemu-ppc] [PATCH 27/58] device tree: dont fail operations, Alexander Graf, 2011/09/14
[Qemu-ppc] [PATCH 58/58] KVM: Update kernel headers, Alexander Graf, 2011/09/14
[Qemu-ppc] [PATCH 40/58] PPC: Fix sync instructions problem in SMP, Alexander Graf, 2011/09/14
[Qemu-ppc] [PATCH 01/58] spapr: proper qdevification, Alexander Graf, 2011/09/14
- Re: [Qemu-ppc] [PATCH 01/58] spapr: proper qdevification,
David Gibson <=
- Re: [Qemu-ppc] [PATCH 01/58] spapr: proper qdevification, Paolo Bonzini, 2011/09/15
- Re: [Qemu-ppc] [PATCH 01/58] spapr: proper qdevification, David Gibson, 2011/09/15
- Re: [Qemu-ppc] [PATCH 01/58] spapr: proper qdevification, Paolo Bonzini, 2011/09/16
- Re: [Qemu-ppc] [PATCH 01/58] spapr: proper qdevification, Thomas Huth, 2011/09/16
- Re: [Qemu-ppc] [PATCH 01/58] spapr: proper qdevification, Paolo Bonzini, 2011/09/16
- Re: [Qemu-ppc] [PATCH 01/58] spapr: proper qdevification, Benjamin Herrenschmidt, 2011/09/16
- Re: [Qemu-ppc] [PATCH 01/58] spapr: proper qdevification, Thomas Huth, 2011/09/19
- Re: [Qemu-ppc] [PATCH 01/58] spapr: proper qdevification, Paolo Bonzini, 2011/09/19
Re: [Qemu-ppc] [PATCH 01/58] spapr: proper qdevification, David Gibson, 2011/09/16
Re: [Qemu-ppc] [PATCH 01/58] spapr: proper qdevification, Paolo Bonzini, 2011/09/19