On Fri, 09/28 11:25, Peter Maydell wrote: > On 28 September 2018 at 09:15, Fam Zheng <f...@redhat.com> wrote: > > On Thu, 09/27 14:48, Peter Maydell wrote: > >> NB: tested with qemu-system-x86_64 -cpu host -enable-kvm -m 4096 > >> -device mptsas1068 -drive id=mydisk,if=none,file=harddisk.qcow2 > >> -device scsi-disk,drive=mydisk > >> which behaves no differently before or after the patch, though > >> the guest I have (an x86 ubuntu) seems to detect the controller > >> but not find any disks attached to it. Maybe my command line is wrong? > > > > But do you see a /dev/sda in guest (or does it boot at all)? > > No, it doesn't boot -- it can't find a disk so it dumps > me to an initrd prompt, where there's nothing in > /dev/disk/by-id/ except the cdrom drive.
Maybe it's because the initrd has mptsas.ko but not sd_mod.ko? Fam