rtc: clear non-PF bits when reinjecting on ack
commitfbc15e27f760b45c74c9ed7de07d2a7dd13d2034
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 21 Nov 2011 18:00:31 +0000 (21 19:00 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 13 Jan 2012 16:20:50 +0000 (13 10:20 -0600)
tree4282bdc836608426977169d9540150907c1bda71
parent663447d4ead009efd8959fe9f7055398dacd6db4
rtc: clear non-PF bits when reinjecting on ack

When an rtc interrupt is reinjected immediately after being acked,
other interrupts should not be reinjected, so do clear their bits.

Also, if the periodic interrupts have been disabled before acking,
do not reinject, as the guest might get very confused!

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/mc146818rtc.c