Received: from eggs.gnu.org ([2001:4830:134:3::10]:38961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWKv5-0006CB-UQ for qemu-devel@nongnu.org; Fri, 13 Mar 2015 04:26:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YWKv4-0004td-Ve for qemu-devel@nongnu.org; Fri, 13 Mar 2015 04:26:11 -0400 Date: Fri, 13 Mar 2015 09:26:02 +0100 From: Kevin Wolf Message-ID: <20150313082602.GB5299@noname.redhat.com> References: <1426008400-22016-1-git-send-email-armbru@redhat.com> <20150310181337.GG14255@redhat.com> <5501C5AF.8030202@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5501C5AF.8030202@redhat.com> Subject: Re: [Qemu-devel] [PATCH RFC 0/2] Limit support for encrypted images to qemu-img List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-block@nongnu.org, Markus Armbruster , qemu-devel@nongnu.org, kraxel@redhat.com, stefanha@redhat.com Am 12.03.2015 um 17:58 hat Paolo Bonzini geschrieben: > > For cold plug, have a command line arg '--add-keys prompt' to > > indicate the user should be prompted on TTY to enter keys, > > This can even be the default if you have a human monitor open. > (Downside: the default human monitor, accessible with Ctrl-Alt-2, is not > easily discovered; same for Ctrl-A c for -nographic). In some ancient version this actually worked as expected: When you started a VM with an encrypted image, the HMP monitor was active, and after providing the password, it switched to the graphical output. > > For managed usage we could allow > > '--add-keys fd=FDNUM' and just read keys from the file descriptor. > > For managed usage, options can also be passed via -readconfig like > > [object "mykey1"] > type=secret > secret=SECRETDATA Hopefully not using a real file, but /dev/fdset/something. Kevin