Am 16.05.2011 15:04, schrieb Markus Armbruster: > ide-hd does *not* suppress the default CD-ROM, unlike legacy > ide-drive. > > scsi-cd *does* suppress it, unlike legacy scsi-disk. > > Signed-off-by: Markus Armbruster <arm...@redhat.com> > --- > vl.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/vl.c b/vl.c > index bffba69..e271c0b 100644 > --- a/vl.c > +++ b/vl.c > @@ -279,7 +279,9 @@ static struct { > { .driver = "isa-serial", .flag = &default_serial }, > { .driver = "isa-parallel", .flag = &default_parallel }, > { .driver = "isa-fdc", .flag = &default_floppy }, > + { .driver = "ide-cd", .flag = &default_cdrom }, > { .driver = "ide-drive", .flag = &default_cdrom }, > + { .driver = "scsi-cd", .flag = &default_cdrom }, > { .driver = "virtio-serial-pci", .flag = &default_virtcon }, > { .driver = "virtio-serial-s390", .flag = &default_virtcon }, > { .driver = "virtio-serial", .flag = &default_virtcon },
Wow, I wasn't even aware that we have such magic in relatively new code like -device. And that it's only effective for -device, but not -drive. And to be honest, I really never wanted to know... Anyway, you can't create an ide-hd on secondary master now because there is the default CD-ROM already: qemu-system-x86_64: -device ide-hd,drive=blubb,unit=0,bus=ide.1: IDE unit 0 is in use qemu-system-x86_64: -device ide-hd,drive=blubb,unit=0,bus=ide.1: Device 'ide-hd' could not be initialized Kevin