From 39a51dfda835a75c0ebbfd92705b96e4de77f795 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Tue, 27 Oct 2009 13:52:13 +0100 Subject: qdev: Tag isa-fdc, PIIX3 IDE and PIIX4 IDE as no-user 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 Signed-off-by: Anthony Liguori --- hw/ide/piix.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hw/ide/piix.c') diff --git a/hw/ide/piix.c b/hw/ide/piix.c index 8958d56..a4756e0 100644 --- a/hw/ide/piix.c +++ b/hw/ide/piix.c @@ -179,10 +179,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 */ -- cgit v1.1