From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Swvjx-0005Xx-5J for qemu-devel@nongnu.org; Thu, 02 Aug 2012 09:47:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Swvjq-0000Lm-5T for qemu-devel@nongnu.org; Thu, 02 Aug 2012 09:47:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57687) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Swvjp-0000Li-TT for qemu-devel@nongnu.org; Thu, 02 Aug 2012 09:46:54 -0400 Message-ID: <501A84C8.4060508@redhat.com> Date: Thu, 02 Aug 2012 15:46:48 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1343869374-23417-1-git-send-email-lcapitulino@redhat.com> <1343869374-23417-14-git-send-email-lcapitulino@redhat.com> <87y5lx5sqi.fsf@blackfin.pond.sub.org> In-Reply-To: <87y5lx5sqi.fsf@blackfin.pond.sub.org> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 13/34] hmp: hmp_change(): don't rely on QERR_DEVICE_ENCRYPTED List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: kwolf@redhat.com, aliguori@us.ibm.com, mdroth@linux.vnet.ibm.com, qemu-devel@nongnu.org, Luiz Capitulino , eblake@redhat.com Il 02/08/2012 15:27, Markus Armbruster ha scritto: >> > + bdev_list = qmp_query_block(NULL); >> > + for (bdev = bdev_list; bdev; bdev = bdev->next) { >> > + if (!strcmp(bdev->value->device, device) && >> > + blockinfo_is_encrypted(bdev->value) && >> > + !blockinfo_key_is_set(bdev->value)) { >> > + hmp_change_ask_user_key(mon, bdev->value); >> > + break; >> > + } >> > + } Is this anything that an external application can reproduce? Perhaps we need to keep QERR_DEVICE_ENCRYPTED even if libvirt does not use it, or at least provide an alternative mechanism (e.g. an event) to realize its effect. Paolo