register reset handler for option_roms
commite28f988427c3a27cf42ef2229f12f0a7e67cb00c
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:24:10 +0000 (8 15:24 -0500)
tree6fa233bcac63b6882a3f9d9823a2d37b4b139acf
parentd4d698f020e50333d6eae48ce323752613b5c3ea
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