]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vcpu: improve vcpu support in xen command line
authorEric Blake <eblake@redhat.com>
Tue, 5 Oct 2010 14:18:52 +0000 (08:18 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 19 Oct 2010 16:06:45 +0000 (10:06 -0600)
commit0fab10e5ed971ab4f960a53e9640b0672f4b8ac3
tree62a2494f7ed81c6a55ab095aa434097955ab367d
parent28a3605906385cba43df77051dc26e865f237b09
vcpu: improve vcpu support in xen command line

This patch series focuses on xendConfigVersion 2 (xm_internal) and 3
(xend_internal), but leaves out changes for xenapi drivers.

See this link for more details about vcpu_avail for xm usage.
http://lists.xensource.com/archives/html/xen-devel/2009-11/msg01061.html

This relies on the fact that def->maxvcpus can be at most 32 with xen.

* src/xen/xend_internal.c (xenDaemonParseSxpr)
(sexpr_to_xend_domain_info, xenDaemonFormatSxpr): Use vcpu_avail
when current vcpus is less than maximum.
* src/xen/xm_internal.c (xenXMDomainConfigParse)
(xenXMDomainConfigFormat): Likewise.
* tests/xml2sexprdata/xml2sexpr-pv-vcpus.sexpr: New file.
* tests/sexpr2xmldata/sexpr2xml-pv-vcpus.sexpr: Likewise.
* tests/sexpr2xmldata/sexpr2xml-pv-vcpus.xml: Likewise.
* tests/xmconfigdata/test-paravirt-vcpu.cfg: Likewise.
* tests/xmconfigdata/test-paravirt-vcpu.xml: Likewise.
* tests/xml2sexprtest.c (mymain): New test.
* tests/sexpr2xmltest.c (mymain): Likewise.
* tests/xmconfigtest.c (mymain): Likewise.
src/xen/xend_internal.c
src/xen/xm_internal.c
tests/sexpr2xmldata/sexpr2xml-pv-vcpus.sexpr [new file with mode: 0644]
tests/sexpr2xmldata/sexpr2xml-pv-vcpus.xml [new file with mode: 0644]
tests/sexpr2xmltest.c
tests/xmconfigdata/test-paravirt-vcpu.cfg [new file with mode: 0644]
tests/xmconfigdata/test-paravirt-vcpu.xml [new file with mode: 0644]
tests/xmconfigtest.c
tests/xml2sexprdata/xml2sexpr-pv-vcpus.sexpr [new file with mode: 0644]
tests/xml2sexprtest.c