From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:35514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMGEU-0000mL-Gs for qemu-devel@nongnu.org; Fri, 04 Nov 2011 05:38:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RMGEP-000603-L2 for qemu-devel@nongnu.org; Fri, 04 Nov 2011 05:38:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMGEP-0005zz-6c for qemu-devel@nongnu.org; Fri, 04 Nov 2011 05:38:37 -0400 Message-ID: <4EB3B295.7080102@redhat.com> Date: Fri, 04 Nov 2011 10:38:29 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <9745359965177@192.168.2.69> <9745548609463@192.168.2.69> In-Reply-To: <9745548609463@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/04/2011 10:18 AM, Thomas Schmitt wrote: > > Paolo: > May i ask for the favor that you try to add O_RDWR to the qemu_open() > call of passthrough devices ? I think the problem is that you're passing media=cdrom: if (media == MEDIA_CDROM) { /* CDROM is fine for any interface, don't check. */ ro = 1; } Just do not do that when using scsi-generic. Paolo