From 73822ec806bc8459047b6e9dea71d675c283a84c Mon Sep 17 00:00:00 2001 From: aliguori Date: Thu, 15 Jan 2009 20:11:34 +0000 Subject: Add -rtc-td-hack option to fix time drift with RTC on Windows (Gleb Natapov) After my last patch to fix interrupt coalescing was rejected on the basis that it is too intrusive we decided to make the fix much more localized and only fix the problem for RTC time source. Unfortunately it is impossible to fix the problem entirely inside RTC code like Andrzej proposed since Windows reads RTC register C more then once on each time interrupt so it is impossible to count reliably how many interrupt windows actually handled. Proposed solution is localized to I386 target and is disabled by default. To enable it "-rtc-td-hack" flag should be used. Signed-off-by: Gleb Natapov Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6320 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/pc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hw/pc.h') diff --git a/hw/pc.h b/hw/pc.h index a60bddf0f9..5dc770985e 100644 --- a/hw/pc.h +++ b/hw/pc.h @@ -46,6 +46,8 @@ void apic_deliver_pic_intr(CPUState *env, int level); int apic_get_interrupt(CPUState *env); IOAPICState *ioapic_init(void); void ioapic_set_irq(void *opaque, int vector, int level); +void apic_reset_irq_delivered(void); +int apic_get_irq_delivered(void); /* i8254.c */ -- cgit v1.2.3