From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:48694) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlV5c-0004oL-90 for qemu-devel@nongnu.org; Thu, 12 Jan 2012 19:33:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RlV5b-0000FM-0s for qemu-devel@nongnu.org; Thu, 12 Jan 2012 19:33:52 -0500 Received: from [222.73.24.84] (port=51588 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlV5a-0000Ce-Eo for qemu-devel@nongnu.org; Thu, 12 Jan 2012 19:33:50 -0500 Date: Fri, 13 Jan 2012 08:33:27 +0800 From: Hu Tao Message-ID: <20120113003326.GB28138@localhost.localdomain> References: <1323169292-21661-1-git-send-email-pbonzini@redhat.com> <20120112051753.GC6489@localhost.localdomain> <4F0EAC44.1050800@redhat.com> MIME-Version: 1.0 In-Reply-To: <4F0EAC44.1050800@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Subject: Re: [Qemu-devel] [PATCH 00/11] virtio-scsi device model List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, stefanha@linux.vnet.ibm.com On Thu, Jan 12, 2012 at 10:47:48AM +0100, Paolo Bonzini wrote: > On 01/12/2012 06:17 AM, Hu Tao wrote: > >Hi Paolo, > > > >How to add a virtio-scsi device? What parameters should I specify > >in qemu command line? > > Same as with other SCSI devices: > > -device virtio-scsi-pci > > then for every disk > > -drive if=none,file=PATH,id=NAME > -device scsi-hd,drive=NAME > > (or scsi-cd for a CD-ROM drive). Thank you. I'll have a try. -- Thanks, Hu Tao