From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:47452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzY8F-0002Cj-P7 for qemu-devel@nongnu.org; Mon, 20 Feb 2012 13:38:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RzY8C-0004Ke-2W for qemu-devel@nongnu.org; Mon, 20 Feb 2012 13:38:39 -0500 Received: from chello084112167138.7.11.vie.surfer.at ([84.112.167.138]:35527 helo=wiesinger.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzY8B-0004At-Mt for qemu-devel@nongnu.org; Mon, 20 Feb 2012 13:38:36 -0500 Date: Mon, 20 Feb 2012 19:36:34 +0100 (CET) From: Gerhard Wiesinger In-Reply-To: <4F421328.6060009@suse.de> Message-ID: References: <1329488460-13467-1-git-send-email-hare@suse.de> <4F421328.6060009@suse.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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: Hannes Reinecke Cc: Alexander Graf , qemu-devel@nongnu.org, Andreas Faerber 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/