libvirt/tests/xml2sexprdata
Eric Blake 0fab10e5ed 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.
2010-10-19 10:06:45 -06:00
..
Makefile.am
xml2sexpr-boot-grub.sexpr tests: fix spurious test failure 2010-10-13 11:33:10 -06:00
xml2sexpr-boot-grub.xml Fix Xen SEXPR generation to properly quote strings containing () 2010-10-13 16:42:48 +01:00
xml2sexpr-bridge-ipaddr.sexpr
xml2sexpr-bridge-ipaddr.xml
xml2sexpr-curmem.sexpr
xml2sexpr-curmem.xml xml2sexprtest: Remove graphics from unrelated tests 2010-08-24 10:10:16 +02:00
xml2sexpr-disk-block-shareable.sexpr
xml2sexpr-disk-block-shareable.xml xml2sexprtest: Remove graphics from unrelated tests 2010-08-24 10:10:16 +02:00
xml2sexpr-disk-block.sexpr
xml2sexpr-disk-block.xml
xml2sexpr-disk-drv-blkback.sexpr
xml2sexpr-disk-drv-blkback.xml
xml2sexpr-disk-drv-blktap2-raw.sexpr Add tests for Xen's blktap2 implementation 2010-08-31 09:54:24 -06:00
xml2sexpr-disk-drv-blktap2-raw.xml Add tests for Xen's blktap2 implementation 2010-08-31 09:54:24 -06:00
xml2sexpr-disk-drv-blktap2.sexpr Add tests for Xen's blktap2 implementation 2010-08-31 09:54:24 -06:00
xml2sexpr-disk-drv-blktap2.xml Add tests for Xen's blktap2 implementation 2010-08-31 09:54:24 -06:00
xml2sexpr-disk-drv-blktap-qcow.sexpr
xml2sexpr-disk-drv-blktap-qcow.xml
xml2sexpr-disk-drv-blktap-raw.sexpr
xml2sexpr-disk-drv-blktap-raw.xml
xml2sexpr-disk-drv-blktap.sexpr
xml2sexpr-disk-drv-blktap.xml
xml2sexpr-disk-drv-loop.sexpr
xml2sexpr-disk-drv-loop.xml
xml2sexpr-disk-file.sexpr
xml2sexpr-disk-file.xml
xml2sexpr-fv-kernel.sexpr
xml2sexpr-fv-kernel.xml
xml2sexpr-fv-localtime.sexpr xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-localtime.xml xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-net-ioemu.sexpr
xml2sexpr-fv-net-ioemu.xml
xml2sexpr-fv-net-netfront.sexpr
xml2sexpr-fv-net-netfront.xml
xml2sexpr-fv-parallel-tcp.sexpr xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-parallel-tcp.xml xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-serial-file.sexpr xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-serial-file.xml xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-serial-null.sexpr xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-serial-null.xml xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-serial-pipe.sexpr xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-serial-pipe.xml xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-serial-pty.sexpr xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-serial-pty.xml xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-serial-stdio.sexpr xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-serial-stdio.xml xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-serial-tcp-telnet.sexpr xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-serial-tcp-telnet.xml xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-serial-tcp.sexpr xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-serial-tcp.xml xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-serial-udp.sexpr xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-serial-udp.xml xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-serial-unix.sexpr xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-serial-unix.xml xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-sound.sexpr xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-sound.xml xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-usbmouse.sexpr xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-usbmouse.xml xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-usbtablet.sexpr
xml2sexpr-fv-usbtablet.xml
xml2sexpr-fv-utc.sexpr xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-utc.xml xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-v2.sexpr xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-vncunused.sexpr xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv-vncunused.xml xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv.sexpr xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-fv.xml xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-net-bridged.sexpr
xml2sexpr-net-bridged.xml
xml2sexpr-net-e1000.sexpr
xml2sexpr-net-e1000.xml
xml2sexpr-net-routed.sexpr
xml2sexpr-net-routed.xml
xml2sexpr-no-source-cdrom.sexpr xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-no-source-cdrom.xml xen tests: Fix missing "type ioemu" with rhel5-api 2010-08-24 10:10:16 +02:00
xml2sexpr-pci-devs.sexpr
xml2sexpr-pci-devs.xml
xml2sexpr-pv-bootloader.sexpr
xml2sexpr-pv-bootloader.xml
xml2sexpr-pv-localtime.sexpr
xml2sexpr-pv-localtime.xml
xml2sexpr-pv-vcpus.sexpr vcpu: improve vcpu support in xen command line 2010-10-19 10:06:45 -06:00
xml2sexpr-pv-vcpus.xml vcpu: add current attribute to <vcpu> element 2010-10-19 09:58:18 -06:00
xml2sexpr-pv-vfb-new-auto.sexpr
xml2sexpr-pv-vfb-new-auto.xml
xml2sexpr-pv-vfb-new.sexpr
xml2sexpr-pv-vfb-new.xml
xml2sexpr-pv-vfb-orig.sexpr
xml2sexpr-pv-vfb-orig.xml
xml2sexpr-pv.sexpr
xml2sexpr-pv.xml