~vcs-imports/qemu/svntrunk

Viewing all changes in revision 7145.

  • Committer: aliguori
  • Date: 2009-04-22 20:20:22 UTC
  • Revision ID: vcs-imports@canonical.com-20090422202022-uw5caxq0jomemxu7
Change RTC time drift IRQ re-injection (Gleb Natapov)

Currently IRQ are reinjected as soon as they are acknowledged to
the RTC, but Windows sometimes do acknowledgement in a loop with
global interrupt disabled waiting for interrupt to be cleared and
it does not mask RTC vector in PIC/APIC while doing this. In such
situation interrupt injection always fails and RTC interrupt is never
cleared.

Instead of reinjecting coalesced IRQs on acknowledgement the patch below
reinjects them by accelerating RTC clock a bit. This way RTC interrupt
is not constantly raced after coalesced interrupt.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: