From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:47493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLdlV-00056h-3b for qemu-devel@nongnu.org; Wed, 02 Nov 2011 12:34:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLdlT-0001eb-K5 for qemu-devel@nongnu.org; Wed, 02 Nov 2011 12:34:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLdlT-0001eW-D3 for qemu-devel@nongnu.org; Wed, 02 Nov 2011 12:34:11 -0400 Message-ID: <4EB170FB.6070909@redhat.com> Date: Wed, 02 Nov 2011 17:34:03 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <4EB132D3.7070700@redhat.com> <97440666725822@192.168.2.69> In-Reply-To: <97440666725822@192.168.2.69> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Do you have a use for a tester of virtio-scsi with CD drives ? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Schmitt Cc: kwolf@redhat.com, stefanha@gmail.com, qemu-devel@nongnu.org On 11/02/2011 05:26 PM, Thomas Schmitt wrote: > Hi, > > Paolo Bonzini wrote: >> I suggest trying with 1.0-rc (origin/master). > > Am i on the right track with git clone git://git.qemu.org/qemu.git ? Yes. >> scsi-block uses >> read+write for READ/WRITE CDBs and SG_IO for everything else. > > That sounds scary to me. On real Linux systems it is not advisable to > mix SG_IO and block device driver. At least not with optical media. > Often the block device does not learn about status changes until > the tray gets ejected and reloaded manually or by the block device > driver. If i load it by START/STOP UNIT via SG_IO, then the block > device driver believes there are no readable blocks on the medium. Ah, I didn't know this. Probably it's because I didn't test on a machine with a tray that can load, only a laptop. We certainly can switch more commands from pass-through to emulated (including START/STOP UNIT). Paolo