Bug 982459 - Time stops incrementing with virtio-net driver in windows server.
Summary: Time stops incrementing with virtio-net driver in windows server.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: virtio-win
Version: 18
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Ronen Hod
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-09 06:28 UTC by Jan ONDREJ
Modified: 2014-12-15 00:53 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-03 11:36:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Difference of normal time and guest time in seconds. (13.45 KB, image/png)
2013-07-09 06:28 UTC, Jan ONDREJ
no flags Details
Time skew without virtio-net network card. (24.30 KB, image/png)
2013-07-09 08:07 UTC, Jan ONDREJ
no flags Details

Description Jan ONDREJ 2013-07-09 06:28:11 UTC
Created attachment 770813 [details]
Difference of normal time and guest time in seconds.

Description of problem:
Using virtio-net driver in windows server guests will sometimes (random delays) stop incrementing clock in guest. Stop is not incrementing long time and long time there is same time in this guest. Long time means multiple hours.

Version-Release number of selected component (if applicable):
virtio-win-0.1-52.iso
virtio-win-0.1-59.iso
qemu-kvm-1.2.2-13.fc18.x86_64
kernel-3.9.6-200.fc18.x86_64

How reproducible:
daily

Steps to Reproduce:
1. install windows server as guest
2. install virtio-net drivers and enable virtio-net card
3. watch time skew using some monitoring tools

Actual results:
see attached image from check_mk nagios plugin

Expected results:
running clock, at least only small time deltas

Additional info:
If requested, I can retest with Fedora 19.

Comment 1 Vadim Rozenfeld 2013-07-09 07:50:43 UTC
Hi Jan,
How does it work with E1000 and IDE?

Thanks,
Vadim.

Comment 2 Jan ONDREJ 2013-07-09 08:07:47 UTC
Created attachment 770836 [details]
Time skew without virtio-net network card.

(In reply to Vadim Rozenfeld from comment #1)
> How does it work with E1000 and IDE?

Does not matter, if I use ide or virtio-disk drivers.
After change of virtio-net card in libvirt to e1000 helped to workaround this problem for me. I have still time skew, but time is not stopped, just moving slowly.

More info in this thread:
https://lists.fedoraproject.org/pipermail/virt/2013-July/003714.html
(btw, there are 2 problems in this thread. Time skew and time stopped)

Comment 3 Gleb Natapov 2013-07-25 16:04:40 UTC
Which Windows exactly? Also disable hpet for your guest.

Comment 4 Jan ONDREJ 2013-07-26 06:26:00 UTC
Windows Server 2008 R2 Enterprise, SP1, 64bit
All updates applied.

With disabling hpet, did you mean this?

  <timer name='hpet' present='no'/> 

This is my current complete clock settings:

  <clock offset='variable' adjustment='2' basis='utc'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/> 
  </clock>

I will tell later, how it works with disabled hpet.

Comment 5 Jan ONDREJ 2013-07-26 07:59:11 UTC
HPET is disabled, clock offset is -3833.3 seconds. Looks like does not matter, if HPET is enabled or disabled.

Comment 6 Jan ONDREJ 2013-09-05 19:19:51 UTC
Looks like e1000 and other fully virtualised netcards has other problem with 3.10 kernels. :-(

https://lists.fedoraproject.org/pipermail/virt/2013-September/003787.html

So there is no network card in current kernels for windows. :-(

Comment 7 Ronen Hod 2013-09-08 12:45:51 UTC
Hi Jan,

We believe that this is a known issue with broadcasting of clock interrupts to all Windows CPUs, where only CPU0 increments the counters.
This is probably solved in kernel 3.11 (maybe 3.10), and in RHEL. Still, you have to disable HPET.

Ronen.

Comment 8 Jan ONDREJ 2013-12-03 11:36:40 UTC
Looks like it's fixed in current Fedora/EPEL. Tested several weeks without problems.

Comment 9 Cole Robinson 2013-12-03 15:05:04 UTC
Great, thanks for following up Jan!


Note You need to log in before you can comment on or make changes to this bug.