From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:36231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRsRA-0001ME-TG for qemu-devel@nongnu.org; Wed, 01 Jun 2011 16:54:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRoEI-0003lM-L6 for qemu-devel@nongnu.org; Wed, 01 Jun 2011 12:26:46 -0400 Received: from mail-pz0-f45.google.com ([209.85.210.45]:49977) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRoEI-0003kR-GN for qemu-devel@nongnu.org; Wed, 01 Jun 2011 12:25:10 -0400 Received: by pzk30 with SMTP id 30so2814188pzk.4 for ; Wed, 01 Jun 2011 09:25:09 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4DE667DE.702@redhat.com> Date: Wed, 01 Jun 2011 18:25:02 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <4DD6246F.4080802@gnu.org> <4DE642CC.8000906@redhat.com> In-Reply-To: <4DE642CC.8000906@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] virtio scsi host draft specification, v2 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Paolo Bonzini , qemu-devel , Stefan Hajnoczi On 06/01/2011 03:46 PM, Avi Kivity wrote: > >> Virtqueues >> 0:control transmitq >> 1:control receiveq >> 2:requestq >> > > Shouldn't we plan multiqueue for this from day 1? How would you do multiqueue? Just provide N queues, and the device can place requests for any LUN on any queue? If that's correct, it doesn't sound too hard to do, but also doesn't sound problematic to fit it later. So I'm quite ambivalent >> Requests have the following format: >> >> struct virtio_scsi_req_cmd { >> u8 lun[8]; >> u64 id; >> u8 task_attr; >> u8 prio; >> u8 crn; >> u32 num_dataout, num_datain; >> char cdb[]; >> char data[][num_dataout+num_datain]; >> u8 sense[]; >> u32 sense_len; >> u32 residual; >> u16 status_qualifier; >> u8 status; >> u8 response; >> }; > > flags? room for growth? Feature bits can be used to negotiate the exact format of the request. I don't expect many changes, since we're closely mimicking the SCSI requests. Paolo