diff options
author | Gleb Natapov <gleb@redhat.com> | 2009-12-08 15:50:54 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-12 07:59:38 -0600 |
commit | ba32edab7fdab0e74b54696942b4127d26861cf6 (patch) | |
tree | b3f4e006817997a866dbcba1def18fd1fdbdfb1b /hw/usb-msd.c | |
parent | 6d74ca5aa83b83fb52332f7735c61ecb7a5328c1 (diff) | |
download | qemu-ba32edab7fdab0e74b54696942b4127d26861cf6.zip qemu-ba32edab7fdab0e74b54696942b4127d26861cf6.tar.gz qemu-ba32edab7fdab0e74b54696942b4127d26861cf6.tar.bz2 |
fix rtc-td-hack on host without high-res timers
On hosts without high-res timers it is impossible to inject rtc interrupt
faster then 1kHz. Windows sometimes configures RTC to generate 1kHz
interrupts, so we can't inject missed interrupts when running on such
hosts. Always injecting an interrupt on REG_C read is also not an option
since Windows wait for REG_C to become zero with interrupt disabled
during boot. This patch uses mixed approach: accelerate timer + inject
up to 1000 interrupts on REG_C read.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/usb-msd.c')
0 files changed, 0 insertions, 0 deletions