From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Swwlf-0006Y9-Ph for qemu-devel@nongnu.org; Thu, 02 Aug 2012 10:52:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwwlY-0003OI-Ps for qemu-devel@nongnu.org; Thu, 02 Aug 2012 10:52:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35274) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwwlY-0003OA-Hy for qemu-devel@nongnu.org; Thu, 02 Aug 2012 10:52:44 -0400 Date: Thu, 2 Aug 2012 11:53:19 -0300 From: Luiz Capitulino Message-ID: <20120802115319.29e578f2@doriath.home> In-Reply-To: <501A8744.9030203@redhat.com> 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> <501A84C8.4060508@redhat.com> <87vch12ydp.fsf@blackfin.pond.sub.org> <501A8744.9030203@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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: Paolo Bonzini Cc: kwolf@redhat.com, aliguori@us.ibm.com, mdroth@linux.vnet.ibm.com, qemu-devel@nongnu.org, Markus Armbruster , eblake@redhat.com On Thu, 02 Aug 2012 15:57:24 +0200 Paolo Bonzini wrote: > Il 02/08/2012 15:53, Markus Armbruster ha scritto: > >> > 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. > > Not sure I get you. > > > > External applications should use QMP. > > Yes. Is there a conceivable scenario in which a QMP client needs to > look at QERR_DEVICE_ENCRYPTED? > > > A sane way to change media in QMP needs to provide the key as argument. > > How does the QMP client know that the device is encrypted, and thus they > have to ask for the key and retry? It would be interesting to know how libvirt handles this. > > Same for hmp_cont, by the way. > > > If the key is wrong, fail the change cleanly. In particular, don't > > eject then. > > Agreed on not ejecting, but this is orthogonal. > > Paolo >