From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KMPGj-0002mW-S9 for qemu-devel@nongnu.org; Fri, 25 Jul 2008 11:31:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KMPGh-0002mJ-Qh for qemu-devel@nongnu.org; Fri, 25 Jul 2008 11:31:44 -0400 Received: from [199.232.76.173] (port=52402 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KMPGh-0002mG-MU for qemu-devel@nongnu.org; Fri, 25 Jul 2008 11:31:43 -0400 Received: from py-out-1112.google.com ([64.233.166.183]:50955) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KMPGh-0007AF-8b for qemu-devel@nongnu.org; Fri, 25 Jul 2008 11:31:43 -0400 Received: by py-out-1112.google.com with SMTP id p76so2539010pyb.10 for ; Fri, 25 Jul 2008 08:31:41 -0700 (PDT) Message-ID: <4e9085270807250831n53de87eel4bb06b3fc9a8018d@mail.gmail.com> Date: Fri, 25 Jul 2008 17:31:41 +0200 From: "Henrik Holst" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: [Qemu-devel] Problem with SCSI emulation Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org There seams to be a problem with the SCSI emulation in qemu. I originally tripped over this using KVM but have since confirmed the same behavior in qemu-trunk. I have also tested on both an debian amd64 host and an ubuntu i386 host with the very same results. Trying to install OpenBSD 4.3 as: qemu -drive file=test.img,if=scsi,media=disk -cdrom install43.iso -m 256 -boot d yields continous lines of "lsi_scsi: error: Reselect with pending DMA" from qemu and the OpenBSD installer complaints about problems to write. I have tested with both the i386 and amd64 version of OpenBSD with the very same problem. If booting a linux guest such as ubuntu 8.04 the SCSI emulation seams to work just fine until one starts qemu with -m 4096 (or higher), if one does so the guest sees either a 512B sized drive or a drive without a partition table (and fdisk fails to write a new partition table in the guest). The test.img is a 10G qcow2 file. Since there is no direct speed difference between the ide and scsi emulations (according to my small bonnie+++ tests) this would not normally be a problem, but since the ide emulation is locked to a maximum of 4 devices and we happen to have to use 5 devices :(... I will try to go through the code my self, but would appreciate if any one would have any ideas to what this might be due to (since I am completely new to scsi emulation). Sincerely, Henrik Holst