Il 23/11/2012 17:30, Andreas Färber ha scritto: > If having SCSI_BUS() return NULL was your intent you would not have > needed to switch to object_dynamic_cast in your second patch. :)
In the second patch I needed object_dynamic_cast in case the bus was not a SCSI bus at all. For example: $ qemu-system-x86_64 -S -monitor stdio -device piix3-usb-uhci (qemu) drive_add 4 if=scsi Object 0x7f2dcdcfe380 is not an instance of type SCSI Aborted Paolo