]> git.proxmox.com Git - qemu.git/commit - monitor.c
monitor: Introduce 'block_passwd' command
authorLuiz Capitulino <lcapitulino@redhat.com>
Fri, 4 Dec 2009 17:24:09 +0000 (15:24 -0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 7 Dec 2009 22:36:49 +0000 (16:36 -0600)
commitb3dfdb5a3bae5fb3170397440dfebd579a3fcb04
tree2021f19826758cb1c5e3b55275b4ac89565c1179
parent6ccc51fd20bbb016667a0ba06698f1cc71859917
monitor: Introduce 'block_passwd' command

When using encrypted disk images, QEMU will prompt the user
for passwords when started.

This makes sense for the user protocol, but doesn't for QMP.

The solution is to have Monitor command which allows the user
or a Client to set passwords in advance, so that we avoid
the prompt completely.

This is what block_passwd does, for example:

(QEMU) block_passwd ide0-hd0 foobar

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit a3a55a2edb7c0fd72bc62a8a4c719a1e1983e6ac)
monitor.c
qemu-monitor.hx