Received: from eggs.gnu.org ([208.118.235.92]:37534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgEfg-0004YC-Pv for qemu-devel@nongnu.org; Wed, 05 Dec 2012 08:06:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TgEfV-0007in-5M for qemu-devel@nongnu.org; Wed, 05 Dec 2012 08:05:52 -0500 Received: from indium.canonical.com ([91.189.90.7]:58991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgEfU-0007ij-Tk for qemu-devel@nongnu.org; Wed, 05 Dec 2012 08:05:41 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1TgEfU-0004En-5n for ; Wed, 05 Dec 2012 13:05:40 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 23FFC2E807C for ; Wed, 5 Dec 2012 13:05:40 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 05 Dec 2012 12:56:03 -0000 From: Carlos-velasco <1086782@bugs.launchpad.net> Sender: bounces@canonical.com References: <20121205125603.6348.62070.malonedeb@gac.canonical.com> Message-Id: <20121205125603.6348.62070.malonedeb@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1086782] [NEW] HPET time drift windows 7 64bits guest Reply-To: Bug 1086782 <1086782@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Public bug reported: Using latest qemu-kvm (1.2.0), time drift (clock slow in guest) in Windows = 7 64 bits guest when HPET is enabled (default). Disabling HPET (-no-hpet) solves the time drift. UsePlatformClock enable/disable doesn't make a difference in the guest. bcdedit /set useplatformclock true Using driftfix slew doesn't make a difference too. # qemu-system-x86_64 --version QEMU emulator version 1.2.0 (qemu-kvm-1.2.0), Copyright (c) 2003-2008 Fabri= ce Bellard Kernel is 3.6.8: # uname -a Linux pulsar 3.6.8 #1 SMP Sat Dec 1 16:26:10 CET 2012 x86_64 x86_64 x86_64 = GNU/Linux TSC is stable in the host: =3D=3D=3D # cat /sys/devices/system/clocksource/clocksource0/current_clocksource tsc Dmesg: [ 0.000000] hpet clockevent registered [ 0.000000] tsc: Fast TSC calibration using PIT [ 0.000000] tsc: Detected 2660.096 MHz processor [ 0.001002] Calibrating delay loop (skipped), value calculated using tim= er frequency.. 5320.19 BogoMIPS (lpj=3D2660096) [ 0.001138] pid_max: default: 32768 minimum: 301 ... [ 1.492019] tsc: Refined TSC clocksource calibration: 2659.973 MHz [ 1.492093] Switching to clocksource tsc CPUinfo, constant_tsc: vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz stepping : 10 microcode : 0xa0b cpu MHz : 2667.000 cache size : 2048 KB flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca = cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx l= m constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 mo= nitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm dtherm t= pr_shadow vnmi flexpriority bogomips : 5320.19 # grep -i hpet .config CONFIG_HPET_TIMER=3Dy CONFIG_HPET_EMULATE_RTC=3Dy CONFIG_HPET=3Dy # CONFIG_HPET_MMAP is not set =3D=3D=3D Qemu command line: /usr/bin/qemu-system-x86_64 -drive file=3D/dev/vol0/KVMORION01,cache=3Dnone= ,aio=3Dnative,if=3Dvirtio \ -drive file=3D/dev/vol0/KVMORION02,cache=3Dnone,aio=3Dnative,if=3Dvirtio \ -cpu host \ -m 2048 \ -smp 4,maxcpus=3D4,cores=3D4,threads=3D1,sockets=3D1 \ -rtc base=3Dlocaltime,driftfix=3Dslew \ -vnc 10.124.241.211:0,password -k es \ -monitor telnet:localhost:37200,server,nowait \ -netdev tap,id=3Dkvmorion,ifname=3Dkvmorion,script=3D/etc/qemu-ifup-br0,d= ownscript=3D/etc/qemu-ifdown-br0 \ -device virtio-net-pci,netdev=3Dkvmorion,id=3Dvirtio-nic0,mac=3D02:85:64:= 02:c2:aa \ -device virtio-balloon-pci,id=3Dballoon0 \ -boot menu=3Don \ -pidfile /var/run/kvmorion.pid \ -daemonize Using 1 CPU doesn't make a difference. Only workaround is disabling hpet (-no-hpet) Sample time drift in guest: >ntpdate -q 10.124.241.211 5 Dec 13:36:06 ntpdate[3464]: Raised to realtime priority class server 10.124.241.211, stratum 2, offset 3.694184, delay 0.02551 5 Dec 13:36:12 ntpdate[3464]: step time server 10.124.241.211 offset 3.694= 184 s ec >ntpdate -q 10.124.241.211 5 Dec 13:52:02 ntpdate[1964]: Raised to realtime priority class server 10.124.241.211, stratum 2, offset 4.719968, delay 0.02554 5 Dec 13:52:08 ntpdate[1964]: step time server 10.124.241.211 offset 4.719= 968 s ec ** Affects: qemu Importance: Undecided Status: New ** Summary changed: - HPET time drift windows 7 64bits + HPET time drift windows 7 64bits guest -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1086782 Title: HPET time drift windows 7 64bits guest Status in QEMU: New Bug description: Using latest qemu-kvm (1.2.0), time drift (clock slow in guest) in Window= s 7 64 bits guest when HPET is enabled (default). Disabling HPET (-no-hpet) solves the time drift. UsePlatformClock enable/disable doesn't make a difference in the guest. bcdedit /set useplatformclock true Using driftfix slew doesn't make a difference too. = # qemu-system-x86_64 --version QEMU emulator version 1.2.0 (qemu-kvm-1.2.0), Copyright (c) 2003-2008 Fab= rice Bellard Kernel is 3.6.8: # uname -a Linux pulsar 3.6.8 #1 SMP Sat Dec 1 16:26:10 CET 2012 x86_64 x86_64 x86_6= 4 GNU/Linux TSC is stable in the host: =3D=3D=3D # cat /sys/devices/system/clocksource/clocksource0/current_clocksource tsc Dmesg: [ 0.000000] hpet clockevent registered [ 0.000000] tsc: Fast TSC calibration using PIT [ 0.000000] tsc: Detected 2660.096 MHz processor [ 0.001002] Calibrating delay loop (skipped), value calculated using t= imer frequency.. 5320.19 BogoMIPS (lpj=3D2660096) [ 0.001138] pid_max: default: 32768 minimum: 301 ... [ 1.492019] tsc: Refined TSC clocksource calibration: 2659.973 MHz [ 1.492093] Switching to clocksource tsc = CPUinfo, constant_tsc: vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz stepping : 10 microcode : 0xa0b cpu MHz : 2667.000 cache size : 2048 KB flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mc= a cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx= lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 = monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm dtherm= tpr_shadow vnmi flexpriority bogomips : 5320.19 # grep -i hpet .config CONFIG_HPET_TIMER=3Dy CONFIG_HPET_EMULATE_RTC=3Dy CONFIG_HPET=3Dy # CONFIG_HPET_MMAP is not set =3D=3D=3D Qemu command line: /usr/bin/qemu-system-x86_64 -drive file=3D/dev/vol0/KVMORION01,cache=3Dno= ne,aio=3Dnative,if=3Dvirtio \ -drive file=3D/dev/vol0/KVMORION02,cache=3Dnone,aio=3Dnative,if=3Dvirti= o \ -cpu host \ -m 2048 \ -smp 4,maxcpus=3D4,cores=3D4,threads=3D1,sockets=3D1 \ -rtc base=3Dlocaltime,driftfix=3Dslew \ -vnc 10.124.241.211:0,password -k es \ -monitor telnet:localhost:37200,server,nowait \ -netdev tap,id=3Dkvmorion,ifname=3Dkvmorion,script=3D/etc/qemu-ifup-br0= ,downscript=3D/etc/qemu-ifdown-br0 \ -device virtio-net-pci,netdev=3Dkvmorion,id=3Dvirtio-nic0,mac=3D02:85:6= 4:02:c2:aa \ -device virtio-balloon-pci,id=3Dballoon0 \ -boot menu=3Don \ -pidfile /var/run/kvmorion.pid \ -daemonize Using 1 CPU doesn't make a difference. Only workaround is disabling hpet (-no-hpet) Sample time drift in guest: >ntpdate -q 10.124.241.211 5 Dec 13:36:06 ntpdate[3464]: Raised to realtime priority class server 10.124.241.211, stratum 2, offset 3.694184, delay 0.02551 5 Dec 13:36:12 ntpdate[3464]: step time server 10.124.241.211 offset 3.6= 94184 s ec >ntpdate -q 10.124.241.211 5 Dec 13:52:02 ntpdate[1964]: Raised to realtime priority class server 10.124.241.211, stratum 2, offset 4.719968, delay 0.02554 5 Dec 13:52:08 ntpdate[1964]: step time server 10.124.241.211 offset 4.7= 19968 s ec To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1086782/+subscriptions