register reset handler for option_roms
commitb468f27acd45de96026f69397e2a38fcd831a718
authorGlauber Costa <glommer@redhat.com>
Fri, 8 May 2009 05:22:12 +0000 (8 02:22 -0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 8 May 2009 20:55:22 +0000 (8 15:55 -0500)
treedd2659f86b65f7f0899d20f7aa0f347905541d94
parent8bc2ad6a6aec73844fb0091f9daf73dc8ee4d61c
register reset handler for option_roms

Currently, boot options are not preserved across a system reset.
option roms can modify themselves, or can for instance restore the real
int 0x19 vector after they tried to boot from it.

To properly do that, we need a reset handler registered to deal with option
roms. This patch is based on current version on qemu-kvm.git

Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pc.c