10.06.2014 10:34, Paolo Bonzini wrote: > Il 10/06/2014 08:30, Michael Tokarev ha scritto: >> Hello. >> >> The question is: are the drive shortcuts - -cdrom, -hda, -hdb etc - >> supposed to work in -machine q35 too? Or are they merely ignored? >> >> qemu-system-x86_64 -machine q35 -cdrom foo.img [] > It should work. I remember some complications due to AHCI not having slaves, > but it is a bug.
It looks like the "short" -drive if=ide option does not connect the created drive to any bus at all. With the above command, or with -drive if=ide,index=*,bus=*, info qtree does not show the drive at all. While -drive if=none,id=X -device ide-cd,drive=X connects the drive to the right bus just fine. Again, should this drive be visible in qtree? At least with -M pc, similarly added devices are shown properly there. Thanks, /mjt