hpet: Save/restore cached RTC IRQ level
commit5904ae4eba0928c35845720f9a630c19e48c2131
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 1 Feb 2012 19:31:38 +0000 (1 20:31 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 17 Feb 2012 15:58:22 +0000 (17 09:58 -0600)
tree6c234e07d3c34e633e29d62702c60638abb5303e
parent61b7b67df2ed10ff5ab0dcc649080bca782fdc5e
hpet: Save/restore cached RTC IRQ level

In legacy mode, the HPET suppresses the RTC interrupt delivery via IRQ
8 but keeps track of the RTC output level and applies it when legacy
mode is turned off again. This value has to be preserved across save/
restore as it cannot be reconstructed otherwise.

To document that a raised rtc_irq_level won't survive a vmload without
a hpet/rtc_irq_level subsection, add an explicit clearing to the reset
handler.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/hpet.c