Bug 703193
| Summary: | support enabling/disabling xen hpet | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Paolo Bonzini <pbonzini> |
| Component: | libvirt | Assignee: | Paolo Bonzini <pbonzini> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 5.7 | CC: | berrange, cshao, eblake, hjiang, jdenemar, jzheng, leiwang, minovotn, mshao, pbonzini, qwan, rwu, vbian, whuang, xen-maint, ykaul, yoyzhang, yupzhang, yuzhang, yuzhou |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| 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 10:32:08 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 702607 | ||
| Bug Blocks: | 699611, 702652 | ||
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 |
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.