From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:39783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzPbm-00086w-L1 for qemu-devel@nongnu.org; Mon, 20 Feb 2012 04:32:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RzPbg-0007B2-NQ for qemu-devel@nongnu.org; Mon, 20 Feb 2012 04:32:34 -0500 Received: from cantor2.suse.de ([195.135.220.15]:48112 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzPbg-0007A2-Eq for qemu-devel@nongnu.org; Mon, 20 Feb 2012 04:32:28 -0500 Message-ID: <4F421328.6060009@suse.de> Date: Mon, 20 Feb 2012 10:32:24 +0100 From: Hannes Reinecke MIME-Version: 1.0 References: <1329488460-13467-1-git-send-email-hare@suse.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH][v12] megasas: LSI Megaraid SAS HBA emulation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerhard Wiesinger Cc: Alexander Graf , qemu-devel@nongnu.org, Andreas Faerber On 02/18/2012 01:38 PM, Gerhard Wiesinger wrote: > Hello Hannes, >=20 > Patch applies well to qemu tree and with a one line modification to > qemu-kvm. >=20 > My testcase was to install Fedora 16 x64 on qemu-kvm. Unfortunatly > it was NOT successful. >=20 > 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 ... >=20 > Looks like that hd device is dead. >=20 > With LSI 53C895A everything is fine and install works well. >=20 > Any ideas? >=20 > Command line: > /root/download/qemu/git/qemu-kvm/x86_64-softmmu/qemu-system-x86_64 > -device megasas,id=3Draid,romfile=3DBIOS/MegaSAS.rom > -drive file=3DVM-FEDORA/fedora.qcow2,if=3Dnone,cache=3Dunsafe,id=3Did0 > -device scsi-disk,drive=3Did0 > -cdrom ISO/Fedora-16-x86_64-DVD.iso > -boot order=3Dcad,menu=3Don -m 2048 -k de -vga vmware -vnc :0 > -bios /root/download/seabios/git/seabios/out/bios.bin > -device rtl8139,mac=3D00:02:44:92:87:6a,vlan=3D0,romfile=3D > -net tap,ifname=3Dtap0,script=3Dno,downscript=3Dno,vlan=3D0 > -device pcnet,mac=3D1a:46:0b:ca:bc:7e,vlan=3D1,romfile=3D > -net tap,ifname=3Dtap1,script=3Dno,downscript=3Dno,vlan=3D1 >=20 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 |=3D 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, (Mind the linewrap) Cheers, Hannes --=20 Dr. Hannes Reinecke zSeries & Storage hare@suse.de +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg GF: J. Hawn, J. Guild, F. Imend=F6rffer, HRB 16746 (AG N=FCrnberg)