libvirt/tests/xmconfigdata
Jim Fehlig 5b74103b0b Xen: support maxvcpus in xm and xl config
From: Ian Campbell <ian.campbell@citrix.com>

xend prior to 4.0 understands vcpus as maxvcpus and vcpu_avail
as a bit map of which cpus are online (default is all).

xend from 4.0 onwards understands maxvcpus as maxvcpus and
vcpus as the number which are online (from 0..N-1). The
upstream commit (68a94cf528e6 "xm: Add maxvcpus support")
claims that if maxvcpus is omitted then the old behaviour
(i.e. obeying vcpu_avail) is retained, but AFAICT it was not,
in this case vcpu==maxcpus==online cpus. This is good for us
because handling anything else would be fiddly.

This patch changes parsing of the virDomainDef maxvcpus and vcpus
entries to use the corresponding 'maxvcpus' and 'vcpus' settings
from xm and xl config. It also drops use of the old Xen 3.x
'vcpu_avail' setting.

The change also removes the maxvcpus limit of MAX_VIRT_VCPUS (since
maxvcpus is simply a count, not a bit mask), which is particularly
crucial on ARM where MAX_VIRT_CPUS == 1 (since all guests are
expected to support vcpu placement, and therefore only the boot
vcpu's info lives in the shared info page).

Existing tests adjusted accordingly, and new tests added for the
'maxvcpus' setting.
2015-12-18 17:52:00 -07:00
..
sexpr2xml-pv-bootloader.cfg
sexpr2xml-pv-bootloader.xml
test-escape-paths.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-escape-paths.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-default-feature.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-default-feature.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-force-hpet.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-force-hpet.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-force-nohpet.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-force-nohpet.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-localtime.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-localtime.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-net-netfront.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-net-netfront.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-new-cdrom.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-new-cdrom.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-parallel-tcp.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-parallel-tcp.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-serial-dev-2-ports.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-serial-dev-2-ports.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-serial-dev-2nd-port.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-serial-dev-2nd-port.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-serial-file.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-serial-file.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-serial-null.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-serial-null.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-serial-pipe.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-serial-pipe.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-serial-pty.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-serial-pty.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-serial-stdio.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-serial-stdio.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-serial-tcp-telnet.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-serial-tcp-telnet.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-serial-tcp.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-serial-tcp.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-serial-udp.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-serial-udp.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-serial-unix.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-serial-unix.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-sound.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-sound.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-usbmouse.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-usbmouse.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-usbtablet-no-bus.xml xen: use virDomainDefPostParse for parsing XM/XL/SEXPR cofings 2015-12-09 12:59:21 +01:00
test-fullvirt-usbtablet.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-usbtablet.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-utc.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-utc.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-no-source-cdrom.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-no-source-cdrom.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-paravirt-maxvcpus.cfg Xen: support maxvcpus in xm and xl config 2015-12-18 17:52:00 -07:00
test-paravirt-maxvcpus.xml Xen: support maxvcpus in xm and xl config 2015-12-18 17:52:00 -07:00
test-paravirt-net-e1000.cfg xenconfig: move <os> parsing/formating to config-specific files 2015-04-16 16:11:01 -06:00
test-paravirt-net-e1000.xml xen: use virDomainDefPostParse for parsing XM/XL/SEXPR cofings 2015-12-09 12:59:21 +01:00
test-paravirt-net-vifname.cfg xenconfig: move <os> parsing/formating to config-specific files 2015-04-16 16:11:01 -06:00
test-paravirt-net-vifname.xml xen: use virDomainDefPostParse for parsing XM/XL/SEXPR cofings 2015-12-09 12:59:21 +01:00
test-paravirt-new-pvfb-vncdisplay.cfg xenconfig: move <os> parsing/formating to config-specific files 2015-04-16 16:11:01 -06:00
test-paravirt-new-pvfb-vncdisplay.xml xen: use virDomainDefPostParse for parsing XM/XL/SEXPR cofings 2015-12-09 12:59:21 +01:00
test-paravirt-new-pvfb.cfg xenconfig: move <os> parsing/formating to config-specific files 2015-04-16 16:11:01 -06:00
test-paravirt-new-pvfb.xml xen: use virDomainDefPostParse for parsing XM/XL/SEXPR cofings 2015-12-09 12:59:21 +01:00
test-paravirt-vcpu.cfg Xen: support maxvcpus in xm and xl config 2015-12-18 17:52:00 -07:00
test-paravirt-vcpu.xml xen: use virDomainDefPostParse for parsing XM/XL/SEXPR cofings 2015-12-09 12:59:21 +01:00
test-pci-devs.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-pci-devs.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00