qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH][v12] megasas: LSI Megaraid SAS HBA emulation


From: Gerhard Wiesinger
Subject: Re: [Qemu-devel] [PATCH][v12] megasas: LSI Megaraid SAS HBA emulation
Date: Mon, 20 Feb 2012 19:36:34 +0100 (CET)
User-agent: Alpine 2.02 (LFD 1266 2009-07-14)

On Mon, 20 Feb 2012, Hannes Reinecke wrote:

On 02/18/2012 01:38 PM, Gerhard Wiesinger wrote:
Hello Hannes,

Patch applies well to qemu tree and with a one line modification to
qemu-kvm.

My testcase was to install Fedora 16 x64 on qemu-kvm. Unfortunatly
it was NOT successful.

1.) Strange thing is that udevd got into timeouts and tries to kill
a lot afterwards.
2.) Report that udevadm settle - timeout of 120 seconds reached, the
event queue contains: ....
3.) Then it hangs in Examining Devices ...

Looks like that hd device is dead.

With LSI 53C895A everything is fine and install works well.

Any ideas?

Command line:
/root/download/qemu/git/qemu-kvm/x86_64-softmmu/qemu-system-x86_64
 -device megasas,id=raid,romfile=BIOS/MegaSAS.rom
-drive file=VM-FEDORA/fedora.qcow2,if=none,cache=unsafe,id=id0
-device scsi-disk,drive=id0
-cdrom ISO/Fedora-16-x86_64-DVD.iso
-boot order=cad,menu=on -m 2048 -k de -vga vmware -vnc :0
-bios /root/download/seabios/git/seabios/out/bios.bin
-device rtl8139,mac=00:02:44:92:87:6a,vlan=0,romfile=
-net tap,ifname=tap0,script=no,downscript=no,vlan=0
-device pcnet,mac=1a:46:0b:ca:bc:7e,vlan=1,romfile=
-net tap,ifname=tap1,script=no,downscript=no,vlan=1


MSI-X support is buggered, and due to a bug in megasas.c you cannot
switch it off :-(

Please try with this patch:

diff --git a/hw/megasas.c b/hw/megasas.c
index 26cc355..4f74ab6 100644
--- a/hw/megasas.c
+++ b/hw/megasas.c
@@ -1972,7 +1977,6 @@ static int megasas_scsi_init(PCIDevice *dev)
                          0x40000);

    pci_register_bar(&s->dev, 0, PCI_BASE_ADDRESS_SPACE_MEMORY,
&s->mmio_io);
-    s->flags |= MEGASAS_FLAG_USE_MSIX;
    memory_region_init(&s->msix_io, "megasas-msix", 4096);
    if (megasas_use_msix(s) && !msix_init(&s->dev, 1, &s->msix_io,
1, 0)) {
        pci_register_bar(&s->dev, 1, PCI_BASE_ADDRESS_SPACE_MEMORY,

Can confirm that V12 + patch above fixes the problem.

BTW: What is MSI-X?

Ciao,
Gerhard

--
http://www.wiesinger.com/



reply via email to

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