Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LlsxT-0000pE-Pz for qemu-devel@nongnu.org; Mon, 23 Mar 2009 18:49:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LlsxR-0000nn-Is for qemu-devel@nongnu.org; Mon, 23 Mar 2009 18:49:26 -0400 Received: from [199.232.76.173] (port=59004 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LlsxR-0000nb-Ct for qemu-devel@nongnu.org; Mon, 23 Mar 2009 18:49:25 -0400 Received: from gelbbaer.kn-bremen.de ([78.46.108.116]:57167 helo=smtp.kn-bremen.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LlsxQ-0003bX-Pf for qemu-devel@nongnu.org; Mon, 23 Mar 2009 18:49:25 -0400 Received: from saturn.kn-bremen.de (noident@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.14.2/8.13.8) with ESMTP id n2NM81va040144 for ; Mon, 23 Mar 2009 23:08:01 +0100 (CET) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.14.2/8.13.6/Submit) id n2NM81h0040143 for qemu-devel@nongnu.org; Mon, 23 Mar 2009 23:08:01 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Mon, 23 Mar 2009 23:08:01 +0100 Message-ID: <20090323220801.GA39641@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH 0/4:] misc scsi disk/cdrom fixes/improvements 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 While attempting to fix physical cdrom support on FreeBSD hosts (patches for that shortly) I came across a few deficiencies of the scsi disk/cdrom emulation which I patched as follows: 1. Use correct sector size for cdrom Read TOC command 2. Implement cdrom load/eject functionality (Start Stop Unit command) 3. Add asc 0x3a, ascq 0: Medium not present to NOT READY sense (needed to keep some guests from retrying causing long sleeps in the kernel) 4. Implement Test Unit Ready command (return NOT READY as above if !bdrv_is_inserted(...))