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 20:04:20 +0000 (14:04 -0600)
commit14d505b1f2605498a8a20fcb0b4596395f62e43e
tree8fa0a51eabc12097bdd551cae3aa9da3f0edde6c
parentd647f672186f35e3400824ce19a243f391d3f228
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>
monitor.c
qemu-monitor.hx