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.
In POST: http://post-office.corp.redhat.com/archives/rhvirt-patches/2011-May/msg00141.html
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
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'/> ...
see comment 4, support was only introduced in libvirt-0.8.2-20.el5.
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