qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] hw/scsi/mptendian: Avoid taking address of fiel


From: Fam Zheng
Subject: Re: [Qemu-devel] [PATCH] hw/scsi/mptendian: Avoid taking address of fields in packed structs
Date: Fri, 28 Sep 2018 18:51:37 +0800
User-agent: Mutt/1.10.1 (2018-07-13)

On Fri, 09/28 11:25, Peter Maydell wrote:
> On 28 September 2018 at 09:15, Fam Zheng <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]