Received: from eggs.gnu.org ([140.186.70.92]:38620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuZay-00080D-V0 for qemu-devel@nongnu.org; Fri, 19 Aug 2011 20:39:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QuZax-0006KZ-QI for qemu-devel@nongnu.org; Fri, 19 Aug 2011 20:39:28 -0400 Received: from nm4-vm0.bullet.mail.ac4.yahoo.com ([98.139.53.206]:34198) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QuZax-0006K6-Nl for qemu-devel@nongnu.org; Fri, 19 Aug 2011 20:39:27 -0400 References: <1311376901.56358.YahooMailNeo@web39804.mail.mud.yahoo.com> Message-ID: <1313800758.92211.YahooMailNeo@web39802.mail.mud.yahoo.com> Date: Fri, 19 Aug 2011 17:39:18 -0700 (PDT) From: Vinay Venkataraghavan In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] unable to use device_add command to hot plug storage volumes to an instance. Reply-To: Vinay Venkataraghavan List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org" , Markus Armbruster Hi all,=0A=0AI'm still encountering this issue that I've described below. = =0A=0A=0AI think prior to qemu 0.12 qemu used to support the pci_add pci_ad= dr=3Dauto storage file=3D interface to hot plug/ hot add storage = volumes to a running instance. =0A=0A=0AHowever, the pci_add command is not= supported in 0.12 at all. When did this happen? =0A=0A=0ASecondly, now how= can I achieve this for qemu 0.12? =0A=0A=0AI've tried using the device_add= interface and the documentation says that it should be very similar to the= -device options on the command line when launching new instances. However,= this just is not the case. I've been trying all sorts of experiments to no= avail.=0A=0AI have a few related questions:=0A=0A1. I connect to my instan= ce using socat on the unix socket/monitor interface. =0A=0A=0A=A0=A0=A0 i t= ry passing commands like: (qemu) device_add driver=3Dvirtio-blk-pci,drive= =3D/root/test_file etc=0A=0A=A0=A0 and this fails. =0A=0A=0AI've tried a nu= mber of other options as well and none of them seem to work.=0A=0ASecondly,= do the inputs to device_add need to be in a JSON dictionary format? =0A=0A= =0AThirdly, what is the expected input for the drive parameter? There seems= to be no documentation describing exactly how this needs to be handled at = all. Any help would be greatly appreciated.=A0=0A=0A(qemu) device_add drive= r=3Dvirtio-blk-pci,bus=3Dpci.0,addr=3D0x6,?=0Adevice_add driver=3Dvirtio-bl= k-pci,bus=3Dpci.0,addr=3D0x6,?=0Avirtio-blk-pci.class=3Dhex32=0Avirtio-blk-= pci.drive=3Ddrive=0Avirtio-blk-pci.logical_block_size=3Duint16=0Avirtio-blk= -pci.physical_block_size=3Duint16=0Avirtio-blk-pci.min_io_size=3Duint16=0Av= irtio-blk-pci.opt_io_size=3Duint32=0Avirtio-blk-pci.vectors=3Duint32=0Avirt= io-blk-pci.indirect_desc=3Don/off=0Avirtio-blk-pci.scsi=3Don/off=0A=0ASo it= has all these options but what are the valid values for the drive paramete= r?=0A=0A=0A=0AThanks,=0A- Vinay=0A=0A=0A=0A=0A=0A----- Original Message ---= --=0AFrom: Markus Armbruster =0ATo: Vinay Venkataraghava= n =0ACc: "qemu-devel@nongnu.org" =0ASent: Monday, July 25, 2011 8:41 AM=0ASubject: Re: [Qemu-devel] qe= mu 0.12 monitor command syntax and interface=0A=0AVinay Venkataraghavan writes:=0A=0A> Hi all,=0A>=0A> I am implementing a g= eneric interface that supports qemu versions 0.9 to 0.12. =0A>=0A>=0A> As a= result I have been trying to get the syntax for the monitor commands for v= arious qemu versions. I have scrounged all over but have not been able to f= ind the syntax for the device_add interface which is supported in qemu 0.12= .=0A>=0A> I would really appreciate it if someone could point me to the syn= tax for these commands. The help text does not provide sufficient informati= on about the argument list either:=0A>=0A> I tried many versions of this co= mmand but to no avail:=0A>=0A> device_add driver=3Dvirtio-blk-pci,bus=3Dpci= .0,addr=3D0x6,drive=3D/tmp/ec6f5d90-e734-4539-bd05-d7545e0f8323.img =0A=0AN= ot what you're asking for, but better than nothing:=0Adocs/qdev-device-use.= txt=0A=0A> Lastly does the device_add commands deprecate the pci_add comman= ds or generically do the device_* commands deprecate the pci_* commands?=0A= =0AIn my opinion, yes.=0A