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 build: avoid non-srcdir "make distcheck" failures (srcdir vs wildcard) 2010-02-25 10:50:18 +01:00
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 remove all trailing blank lines 2009-07-16 15:06:42 +02:00
sexpr2xml-bridge-ipaddr.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-curmem.sexpr * src/xend_internal.c src/xml.c: add an extra element currentMemory 2006-11-10 11:13:01 +00:00
sexpr2xml-curmem.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-disk-block-shareable.sexpr * tests/sexpr2xmltest.c tests/xml2sexprtest.c: warn before exiting 2007-11-20 10:05:45 +00:00
sexpr2xml-disk-block-shareable.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-disk-block.sexpr remove all trailing blank lines 2009-07-16 15:06:42 +02:00
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 remove all trailing blank lines 2009-07-16 15:06:42 +02:00
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 remove all trailing blank lines 2009-07-16 15:06:42 +02:00
sexpr2xml-disk-drv-blktap-raw.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-disk-file.sexpr remove all trailing blank lines 2009-07-16 15:06:42 +02:00
sexpr2xml-disk-file.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-fv-autoport.sexpr add missing files 2009-01-29 17:14:48 +00:00
sexpr2xml-fv-autoport.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-fv-kernel.sexpr Added support for booting off kenrel+initrd with HVM guests 2008-02-05 16:21:25 +00:00
sexpr2xml-fv-kernel.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-fv-legacy-vfb.sexpr Added support for booting off kenrel+initrd with HVM guests 2008-02-05 16:21:25 +00:00
sexpr2xml-fv-legacy-vfb.xml Convert XenD SEXPR->XML convesion to new domain XML APIs 2008-07-25 10:49:33 +00:00
sexpr2xml-fv-localtime.sexpr Added new <clock/> element in XML for choosing utc/localtime 2007-07-16 21:30:30 +00:00
sexpr2xml-fv-localtime.xml Support script for bridge interface type 2009-01-22 18:29:13 +00:00
sexpr2xml-fv-net-ioemu.sexpr Tests for interface type/model configuration 2009-12-04 17:01:34 +01:00
sexpr2xml-fv-net-ioemu.xml Tests for interface type/model configuration 2009-12-04 17:01:34 +01:00
sexpr2xml-fv-net-netfront.sexpr Tests for interface type/model configuration 2009-12-04 17:01:34 +01:00
sexpr2xml-fv-net-netfront.xml Tests for interface type/model configuration 2009-12-04 17:01:34 +01:00
sexpr2xml-fv-parallel-tcp.sexpr Added full support for serial and parallel devices to Xen drivers 2008-04-26 14:22:02 +00:00
sexpr2xml-fv-parallel-tcp.xml Support script for bridge interface type 2009-01-22 18:29:13 +00:00
sexpr2xml-fv-serial-file.sexpr Added full support for serial and parallel devices to Xen drivers 2008-04-26 14:22:02 +00:00
sexpr2xml-fv-serial-file.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-fv-serial-null.sexpr Added full support for serial and parallel devices to Xen drivers 2008-04-26 14:22:02 +00:00
sexpr2xml-fv-serial-null.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-fv-serial-pipe.sexpr Added full support for serial and parallel devices to Xen drivers 2008-04-26 14:22:02 +00:00
sexpr2xml-fv-serial-pipe.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-fv-serial-pty.sexpr Added full support for serial and parallel devices to Xen drivers 2008-04-26 14:22:02 +00:00
sexpr2xml-fv-serial-pty.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-fv-serial-stdio.sexpr Added full support for serial and parallel devices to Xen drivers 2008-04-26 14:22:02 +00:00
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 xen: Fix chardev listen sexpr formatting 2010-05-27 14:26:05 -04:00
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 xen: Fix chardev listen sexpr formatting 2010-05-27 14:26:05 -04:00
sexpr2xml-fv-serial-tcp.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-fv-serial-udp.sexpr Added full support for serial and parallel devices to Xen drivers 2008-04-26 14:22:02 +00:00
sexpr2xml-fv-serial-udp.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-fv-serial-unix.sexpr xen: Fix chardev listen sexpr formatting 2010-05-27 14:26:05 -04:00
sexpr2xml-fv-serial-unix.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-fv-sound-all.sexpr Convert XenD SEXPR->XML convesion to new domain XML APIs 2008-07-25 10:49:33 +00:00
sexpr2xml-fv-sound-all.xml Support script for bridge interface type 2009-01-22 18:29:13 +00:00
sexpr2xml-fv-sound.sexpr Convert XenD SEXPR->XML convesion to new domain XML APIs 2008-07-25 10:49:33 +00:00
sexpr2xml-fv-sound.xml Support script for bridge interface type 2009-01-22 18:29:13 +00:00
sexpr2xml-fv-usbmouse.sexpr Fix XML generation for Xen USB devices 2008-01-30 16:38:18 +00:00
sexpr2xml-fv-usbmouse.xml Support script for bridge interface type 2009-01-22 18:29:13 +00:00
sexpr2xml-fv-usbtablet.sexpr Fix XML generation for Xen USB devices 2008-01-30 16:38:18 +00:00
sexpr2xml-fv-usbtablet.xml Support script for bridge interface type 2009-01-22 18:29:13 +00:00
sexpr2xml-fv-utc.sexpr Added new <clock/> element in XML for choosing utc/localtime 2007-07-16 21:30:30 +00:00
sexpr2xml-fv-utc.xml Support script for bridge interface type 2009-01-22 18:29:13 +00:00
sexpr2xml-fv-v2.sexpr Don't blindly reorder disk drives 2009-09-02 15:19:34 +01:00
sexpr2xml-fv-v2.xml Support script for bridge interface type 2009-01-22 18:29:13 +00:00
sexpr2xml-fv.sexpr Added support for keymap in VNC display 2007-03-06 20:00:17 +00:00
sexpr2xml-fv.xml Support script for bridge interface type 2009-01-22 18:29:13 +00:00
sexpr2xml-net-bridged.sexpr remove all trailing blank lines 2009-07-16 15:06:42 +02:00
sexpr2xml-net-bridged.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-net-e1000.sexpr remove all trailing blank lines 2009-07-16 15:06:42 +02:00
sexpr2xml-net-e1000.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-net-routed.sexpr remove all trailing blank lines 2009-07-16 15:06:42 +02:00
sexpr2xml-net-routed.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-no-source-cdrom.sexpr * src/xend_internal.c src/xml.c: applied patch from Nobuhiro Itou 2007-04-11 16:06:30 +00:00
sexpr2xml-no-source-cdrom.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-pci-devs.sexpr remove all trailing blank lines 2009-07-16 15:06:42 +02:00
sexpr2xml-pci-devs.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-pv-bootloader.sexpr * src/xend_internal.c src/xm_internal.c src/xml.c: add support 2007-06-07 13:50:18 +00:00
sexpr2xml-pv-bootloader.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-pv-localtime.sexpr remove all trailing blank lines 2009-07-16 15:06:42 +02:00
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 remove all trailing blank lines 2009-07-16 15:06:42 +02:00
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 remove all trailing blank lines 2009-07-16 15:06:42 +02:00
sexpr2xml-pv-vfb-new.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-pv-vfb-orig.sexpr remove all trailing blank lines 2009-07-16 15:06:42 +02:00
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 Add test for recently fixed crash with latest XenD 2009-08-19 17:44:50 +01:00
sexpr2xml-pv-vfb-type-crash.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
sexpr2xml-pv.sexpr remove all trailing blank lines 2009-07-16 15:06:42 +02:00
sexpr2xml-pv.xml domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00