diff options
author | Eric Blake <eblake@redhat.com> | 2010-10-05 08:18:52 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2010-10-19 10:06:45 -0600 |
commit | 0fab10e5ed971ab4f960a53e9640b0672f4b8ac3 (patch) | |
tree | 62a2494f7ed81c6a55ab095aa434097955ab367d /tests/sexpr2xmltest.c | |
parent | vcpu: complete vcpu support in qemu driver (diff) | |
download | libvirt-0fab10e5ed971ab4f960a53e9640b0672f4b8ac3.tar.gz libvirt-0fab10e5ed971ab4f960a53e9640b0672f4b8ac3.tar.bz2 libvirt-0fab10e5ed971ab4f960a53e9640b0672f4b8ac3.zip |
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.
Diffstat (limited to 'tests/sexpr2xmltest.c')
-rw-r--r-- | tests/sexpr2xmltest.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/sexpr2xmltest.c b/tests/sexpr2xmltest.c index d62b44f8d..f100dd87c 100644 --- a/tests/sexpr2xmltest.c +++ b/tests/sexpr2xmltest.c @@ -132,6 +132,7 @@ mymain(int argc, char **argv) DO_TEST("pv-vfb-type-crash", "pv-vfb-type-crash", 3); DO_TEST("fv-autoport", "fv-autoport", 3); DO_TEST("pv-bootloader", "pv-bootloader", 1); + DO_TEST("pv-vcpus", "pv-vcpus", 1); DO_TEST("disk-file", "disk-file", 2); DO_TEST("disk-block", "disk-block", 2); |