* [Qemu-devel] [PATCH] qdev: Tag isa-fdc, PIIX3 IDE and PIIX4 IDE as no-user
@ 2009-10-27 12:52 Markus Armbruster
2009-10-27 16:33 ` Gerd Hoffmann
0 siblings, 1 reply; 2+ messages in thread
From: Markus Armbruster @ 2009-10-27 12:52 UTC (permalink / raw)
To: qemu-devel
These devices are created automatically, and attempting to create
another one with -device fails with "qemu: hardware error:
register_ioport_write: invalid opaque".
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
hw/fdc.c | 1 +
hw/ide/piix.c | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/hw/fdc.c b/hw/fdc.c
index b584b98..d09783c 100644
--- a/hw/fdc.c
+++ b/hw/fdc.c
@@ -1999,6 +1999,7 @@ static ISADeviceInfo isa_fdc_info = {
.init = isabus_fdc_init1,
.qdev.name = "isa-fdc",
.qdev.size = sizeof(fdctrl_isabus_t),
+ .qdev.no_user = 1,
.qdev.vmsd = &vmstate_fdc,
.qdev.reset = fdctrl_external_reset_isa,
.qdev.props = (Property[]) {
diff --git a/hw/ide/piix.c b/hw/ide/piix.c
index ddce684..a2c7282 100644
--- a/hw/ide/piix.c
+++ b/hw/ide/piix.c
@@ -178,10 +178,12 @@ static PCIDeviceInfo piix_ide_info[] = {
{
.qdev.name = "PIIX3 IDE",
.qdev.size = sizeof(PCIIDEState),
+ .qdev.no_user = 1,
.init = pci_piix3_ide_initfn,
},{
.qdev.name = "PIIX4 IDE",
.qdev.size = sizeof(PCIIDEState),
+ .qdev.no_user = 1,
.init = pci_piix4_ide_initfn,
},{
/* end of list */
--
1.6.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] qdev: Tag isa-fdc, PIIX3 IDE and PIIX4 IDE as no-user
2009-10-27 12:52 [Qemu-devel] [PATCH] qdev: Tag isa-fdc, PIIX3 IDE and PIIX4 IDE as no-user Markus Armbruster
@ 2009-10-27 16:33 ` Gerd Hoffmann
0 siblings, 0 replies; 2+ messages in thread
From: Gerd Hoffmann @ 2009-10-27 16:33 UTC (permalink / raw)
To: Markus Armbruster; +Cc: qemu-devel
On 10/27/09 13:52, Markus Armbruster wrote:
> These devices are created automatically, and attempting to create
> another one with -device fails with "qemu: hardware error:
> register_ioport_write: invalid opaque".
>
> Signed-off-by: Markus Armbruster<armbru@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
cheers,
Gerd
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-27 16:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-27 12:52 [Qemu-devel] [PATCH] qdev: Tag isa-fdc, PIIX3 IDE and PIIX4 IDE as no-user Markus Armbruster
2009-10-27 16:33 ` Gerd Hoffmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).