Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 703193 - support enabling/disabling xen hpet
support enabling/disabling xen hpet
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: libvirt (Show other bugs)
5.7
Unspecified Unspecified
high Severity high
: rc
: ---
Assigned To: Paolo Bonzini
Virtualization Bugs
:
Depends On: 702607
Blocks: 699611 702652
  Show dependency treegraph
 
Reported: 2011-05-09 11:42 EDT by Paolo Bonzini
Modified: 2011-07-21 06:32 EDT (History)
20 users (show)

See Also:
Fixed In Version: libvirt-0.8.2-20.el5
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 702607
Environment:
Last Closed: 2011-07-21 06:32:08 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:1019 normal SHIPPED_LIVE Moderate: libvirt security, bug fix, and enhancement update 2011-07-21 06:31:00 EDT

  None (edit)
Comment 1 Daniel Berrange 2011-05-10 07:41:17 EDT
Fortunately we already have XML syntax for configuring timers. For HPET you can toggle it on/off with something like:

  <clock offset='utc'>
    <timer name='hpet' present='yes|no'/>
  </clock>

So this simply needs to be wired up to the Xen SEXPR and XM config file convertors and it'll work with Xen.
Comment 4 Vivian Bian 2011-05-11 23:44:31 EDT
tested with 
libvirt-0.8.2-20.el5
xen-3.0.3-130.el5
kernel-2.6.18-259.el5

Steps:
[root@localhost libvirt]# virsh edit win2k3
Domain win2k3 XML configuration edited.

[root@localhost libvirt]# virsh start win2k3
Domain win2k3 started

[root@localhost libvirt]# virsh dumpxml win2k3 |grep hpet
    <timer name='hpet' present='yes'/>
[root@localhost libvirt]# cat /etc/xen/win2k3 |grep hpet
hpet = 1
[root@localhost libvirt]# virsh destroy win2k3
Domain win2k3 destroyed

[root@localhost libvirt]# virsh edit win2k3
Domain win2k3 XML configuration edited.

[root@localhost libvirt]# virsh start win2k3
Domain win2k3 started

[root@localhost libvirt]# virsh dumpxml win2k3|grep hpet
    <timer name='hpet' present='no'/>
[root@localhost libvirt]# cat /etc/xen/win2k3 |grep hpet
hpet = 0
tap,vlan=1,bridge=virbr0 -vnc 127.0.0.1:10 -vncunused


According to above result , hpet could be set correctly . So set bug status to VERIFIED
Comment 5 Huming Jiang 2011-06-01 07:47:10 EDT
could produce this bug on the following components of rh5.6:
kernel-xen-2.6.18-238.el5
xen-3.0.3-120.el5
libvirt-0.8.2-15.el5

steps:
1. virsh dumpxml a
...
  <clock offset='utc'/>
...
2.virsh edit a
  <clock offset='utc'>
    <timer name='hpet' present='yes'/>
  </clock>
3.virsh dumpxml a
...
  <clock offset='utc'/>
...
Comment 6 Paolo Bonzini 2011-06-01 08:34:30 EDT
see comment 4, support was only introduced in libvirt-0.8.2-20.el5.
Comment 7 errata-xmlrpc 2011-07-21 06:32:08 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-1019.html

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