]> xenbits.xensource.com Git - libvirt.git/commit
xen: parse and generate hpet item in sxpr
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 10 May 2011 11:24:14 +0000 (13:24 +0200)
committerEric Blake <eblake@redhat.com>
Tue, 10 May 2011 22:16:55 +0000 (16:16 -0600)
commite547e44cb0f3d3b556ca94de899b1dcedd878afd
treeead757d4de11051112d38e6ad518e16cfecec9b7
parentfa4732724ea073bd0caa619a2a2efe8432fcec0b
xen: parse and generate hpet item in sxpr

Recent versions of Xen disable the virtual HPET by default.  This is
usually more precise because tick policies are not implemented for
the HPET in Xen.  However, there may be several reasons to control
the HPET manually: 1) to test the emulation; 2) because distros may
provide the knob while leaving the default to "enabled" for compatibility
reasons.

This patch provides support for the hpet item in both sexpr and xm
formats, and translates it to a <timer> element.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
17 files changed:
src/xenxs/xen_sxpr.c
src/xenxs/xen_xm.c
tests/sexpr2xmldata/sexpr2xml-fv-force-hpet.sexpr [new file with mode: 0644]
tests/sexpr2xmldata/sexpr2xml-fv-force-hpet.xml [new file with mode: 0644]
tests/sexpr2xmldata/sexpr2xml-fv-force-nohpet.sexpr [new file with mode: 0644]
tests/sexpr2xmldata/sexpr2xml-fv-force-nohpet.xml [new file with mode: 0644]
tests/sexpr2xmltest.c
tests/xmconfigdata/test-fullvirt-force-hpet.cfg [new file with mode: 0644]
tests/xmconfigdata/test-fullvirt-force-hpet.xml [new file with mode: 0644]
tests/xmconfigdata/test-fullvirt-force-nohpet.cfg [new file with mode: 0644]
tests/xmconfigdata/test-fullvirt-force-nohpet.xml [new file with mode: 0644]
tests/xmconfigtest.c
tests/xml2sexprdata/xml2sexpr-fv-force-hpet.sexpr [new file with mode: 0644]
tests/xml2sexprdata/xml2sexpr-fv-force-hpet.xml [new file with mode: 0644]
tests/xml2sexprdata/xml2sexpr-fv-force-nohpet.sexpr [new file with mode: 0644]
tests/xml2sexprdata/xml2sexpr-fv-force-nohpet.xml [new file with mode: 0644]
tests/xml2sexprtest.c