]> git.proxmox.com Git - mirror_qemu.git/commit - block.c
monitor: Rework early disk password inquiry (Jan Kiszka)
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 5 Mar 2009 23:01:01 +0000 (23:01 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 5 Mar 2009 23:01:01 +0000 (23:01 +0000)
commitc0f4ce7751f0b9a9a7815f931a09a6c3de127cee
tree6a72e9f9853916adad4f98493e01392d8d8d6aa9
parent430eb509d2d05bd568c1394213fd12cb447467a7
monitor: Rework early disk password inquiry (Jan Kiszka)

Reading the passwords for encrypted hard disks during early startup is
broken (I guess for quiet a while now):
 - No monitor terminal is ready for input at this point
 - Forcing all mux'ed terminals into monitor mode can confuse other
   users of that channels

To overcome these issues and to lay the ground for a clean decoupling of
monitor terminals, this patch changes the initial password inquiry as
follows:
 - Prevent autostart if there is some encrypted disk
 - Once the user tries to resume the VM, prompt for all missing
   passwords
 - Only resume if all passwords were accepted

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6707 c046a42c-6fe2-441c-8c8c-71466251a162
block.c
block.h
block_int.h
console.h
hw/usb-msd.c
hw/usb.h
monitor.c
vl.c