libvirt/tests/sexpr2xmldata
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
sexpr2xml-boot-grub.sexpr Fix Xen SEXPR generation to properly quote strings containing () 2010-10-13 16:42:48 +01:00
sexpr2xml-boot-grub.xml Fix Xen SEXPR generation to properly quote strings containing () 2010-10-13 16:42:48 +01:00
sexpr2xml-bridge-ipaddr.sexpr
sexpr2xml-bridge-ipaddr.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-curmem.sexpr
sexpr2xml-curmem.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-disk-block-shareable.sexpr
sexpr2xml-disk-block-shareable.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-disk-block.sexpr
sexpr2xml-disk-block.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-disk-drv-blktap2-raw.sexpr Add tests for Xen's blktap2 implementation 2010-08-31 09:54:24 -06:00
sexpr2xml-disk-drv-blktap2-raw.xml Add tests for Xen's blktap2 implementation 2010-08-31 09:54:24 -06:00
sexpr2xml-disk-drv-blktap-qcow.sexpr
sexpr2xml-disk-drv-blktap-qcow.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-disk-drv-blktap-raw.sexpr
sexpr2xml-disk-drv-blktap-raw.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-disk-file.sexpr
sexpr2xml-disk-file.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-fv-autoport.sexpr
sexpr2xml-fv-autoport.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-fv-kernel.sexpr
sexpr2xml-fv-kernel.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-fv-legacy-vfb.sexpr
sexpr2xml-fv-legacy-vfb.xml
sexpr2xml-fv-localtime.sexpr
sexpr2xml-fv-localtime.xml
sexpr2xml-fv-net-ioemu.sexpr
sexpr2xml-fv-net-ioemu.xml
sexpr2xml-fv-net-netfront.sexpr
sexpr2xml-fv-net-netfront.xml
sexpr2xml-fv-parallel-tcp.sexpr
sexpr2xml-fv-parallel-tcp.xml
sexpr2xml-fv-serial-file.sexpr
sexpr2xml-fv-serial-file.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-fv-serial-null.sexpr
sexpr2xml-fv-serial-null.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-fv-serial-pipe.sexpr
sexpr2xml-fv-serial-pipe.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-fv-serial-pty.sexpr
sexpr2xml-fv-serial-pty.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-fv-serial-stdio.sexpr
sexpr2xml-fv-serial-stdio.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-fv-serial-tcp-telnet.sexpr
sexpr2xml-fv-serial-tcp-telnet.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-fv-serial-tcp.sexpr
sexpr2xml-fv-serial-tcp.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-fv-serial-udp.sexpr
sexpr2xml-fv-serial-udp.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-fv-serial-unix.sexpr
sexpr2xml-fv-serial-unix.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-fv-sound-all.sexpr
sexpr2xml-fv-sound-all.xml
sexpr2xml-fv-sound.sexpr
sexpr2xml-fv-sound.xml
sexpr2xml-fv-usbmouse.sexpr
sexpr2xml-fv-usbmouse.xml
sexpr2xml-fv-usbtablet.sexpr
sexpr2xml-fv-usbtablet.xml
sexpr2xml-fv-utc.sexpr
sexpr2xml-fv-utc.xml
sexpr2xml-fv-v2.sexpr
sexpr2xml-fv-v2.xml
sexpr2xml-fv.sexpr
sexpr2xml-fv.xml
sexpr2xml-net-bridged.sexpr
sexpr2xml-net-bridged.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-net-e1000.sexpr
sexpr2xml-net-e1000.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-net-routed.sexpr
sexpr2xml-net-routed.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-no-source-cdrom.sexpr
sexpr2xml-no-source-cdrom.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-pci-devs.sexpr
sexpr2xml-pci-devs.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-pv-bootloader.sexpr
sexpr2xml-pv-bootloader.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-pv-localtime.sexpr
sexpr2xml-pv-localtime.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-pv-vcpus.sexpr vcpu: improve vcpu support in xen command line 2010-10-19 10:06:45 -06:00
sexpr2xml-pv-vcpus.xml vcpu: improve vcpu support in xen command line 2010-10-19 10:06:45 -06:00
sexpr2xml-pv-vfb-new-vncdisplay.sexpr
sexpr2xml-pv-vfb-new-vncdisplay.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-pv-vfb-new.sexpr
sexpr2xml-pv-vfb-new.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-pv-vfb-orig.sexpr
sexpr2xml-pv-vfb-orig.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-pv-vfb-type-crash.sexpr
sexpr2xml-pv-vfb-type-crash.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-pv.sexpr
sexpr2xml-pv.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00