]> git.proxmox.com Git - mirror_qemu.git/commit - hw/ppc/spapr.c
spapr: proper qdevification
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 26 May 2011 09:52:44 +0000 (11:52 +0200)
committerAlexander Graf <agraf@suse.de>
Thu, 6 Oct 2011 07:43:32 +0000 (09:43 +0200)
commit277f9acf79bbf3affb98200c92a4aedaa3234083
tree22e0de4b17274a15dcdf47bc0c027e0757db76aa
parente4fc8781db7c49b0c5ac5d24762e17c59dfe0871
spapr: proper qdevification

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

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: Alexander Graf <agraf@suse.de>
Cc: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/spapr.c
hw/spapr.h
hw/spapr_llan.c
hw/spapr_vio.c
hw/spapr_vio.h
hw/spapr_vscsi.c
hw/spapr_vty.c