From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqfcH-0004ar-Og for qemu-devel@nongnu.org; Tue, 18 Nov 2014 05:02:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xqfc5-0001hB-KS for qemu-devel@nongnu.org; Tue, 18 Nov 2014 05:02:33 -0500 Received: from mail4.gandi.net ([217.70.183.210]:56535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xqfc5-0001f0-ET for qemu-devel@nongnu.org; Tue, 18 Nov 2014 05:02:21 -0500 Date: Tue, 18 Nov 2014 11:02:17 +0100 From: William Dauchy Message-ID: <20141118100217.GK17306@gandi.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PMULwz+zIGJzpDN9" Content-Disposition: inline Subject: [Qemu-devel] hotremoving a disk qmp/hmp List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers Cc: Paolo Bonzini , Ian Main , Fam Zheng , Markus Armbruster --PMULwz+zIGJzpDN9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, When hotremoving a disk I'm using the QMP API with device_del command; Previous query-block command result: { u'device': u'disk1', u'inserted': { u'backing_file_depth': 0, u'bps': 0, u'bps_rd': 0, u'bps_wr': 0, u'detect_zeroes': u'off', u'drv': u'raw', u'encrypted': False, u'encryption_key_missing': False, u'file': u'/dev/sda', u'image': { u'actual-size': 0, u'dirty-flag': False, u'filename': u'/dev/sda', u'format': u'raw', u'virtual-size': 3221225472}, u'iops': 0, u'iops_rd': 0, u'iops_wr': 0, u'ro': False}, u'io-status': u'ok', u'locked': True, u'removable': True, u'tray_open': False, u'type': u'unknown'} After a device_del command I have the same thing but "'locked': False" Then I can also do `eject device=3Ddisk1` which bring me to: { u'device': u'disk1', u'io-status': u'ok', u'locked': False, u'removable': True, u'tray_open': False, u'type': u'unknown'} But I did not found a way to completely remove the disk1 entry in order to be able to add it again. To complete the operation I need to use the old HMP API and use `drive_del` command. Did I miss something? or is it still something missing in QMP API? Best regards, --=20 William --PMULwz+zIGJzpDN9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlRrGSkACgkQ1I6eqOUidQGBlQCgtPmznhg6/V4dL6V8bTcZSfpd 9qUAn0mIxMVcOzsZHNXdzMi5rTrfzI5m =YSW1 -----END PGP SIGNATURE----- --PMULwz+zIGJzpDN9--