libvirt/tests
Michal Privoznik f309db1f4d qemu: Create memory-backend-{ram,file} iff needed
Libvirt BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1175397
QEMU BZ:    https://bugzilla.redhat.com/show_bug.cgi?id=1170093

In qemu there are two interesting arguments:

1) -numa to create a guest NUMA node
2) -object memory-backend-{ram,file} to tell qemu which memory
region on which host's NUMA node it should allocate the guest
memory from.

Combining these two together we can instruct qemu to create a
guest NUMA node that is tied to a host NUMA node. And it works
just fine. However, depending on machine type used, there might
be some issued during migration when OVMF is enabled (see QEMU
BZ). While this truly is a QEMU bug, we can help avoiding it. The
problem lies within the memory backend objects somewhere. Having
said that, fix on our side consists on putting those objects on
the command line if and only if needed. For instance, while
previously we would construct this (in all ways correct) command
line:

    -object memory-backend-ram,size=256M,id=ram-node0 \
    -numa node,nodeid=0,cpus=0,memdev=ram-node0

now we create just:

    -numa node,nodeid=0,cpus=0,mem=256

because the backend object is obviously not tied to any specific
host NUMA node.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2014-12-19 07:44:44 +01:00
..
bhyvexml2argvdata drvbhyve: Use boot-order for grub-bhyve boot device 2014-11-13 15:40:48 +01:00
bhyvexml2xmloutdata tests: add bhyve xml2xml test 2014-04-08 20:50:36 +04:00
capabilityschemadata
commanddata command: test umask support 2014-09-03 09:36:13 -06:00
confdata
cputestdata Don't include non-migratable features in host-model 2014-09-05 12:45:19 +02:00
domaincapsschemadata domaincaps: Expose UEFI binary path, if it exists 2014-09-17 16:29:49 +02:00
domainconfdata Rename virDomainGetRootFilesystem to virDomainGetFilesystemForTarget 2014-02-20 15:50:46 +00:00
domainschemadata qemu: Automatically create NVRAM store 2014-09-10 09:38:07 +02:00
domainsnapshotxml2xmlin conf: split <disk> schema into more pieces 2014-04-16 10:45:55 +02:00
domainsnapshotxml2xmlout snapshot: Add support for specifying snapshot disk backing type 2014-01-29 12:56:35 +01:00
fchostdata/fc_host
interfaceschemadata interface: clean up virInterfaceDefDevFormat 2014-06-20 11:50:41 +03:00
lxcconf2xmldata lxc domain from xml: convert lxc.cap.drop 2014-07-23 15:12:37 +08:00
lxcxml2xmldata Domain config: write <features/> if some capabilities are set. 2014-07-30 14:21:55 +02:00
lxcxml2xmloutdata
networkxml2confdata network: dnsmasq: Don't format lease file path 2014-12-03 14:22:40 +01:00
networkxml2firewalldata Add test for converting network XML to iptables rules 2014-04-25 15:44:09 +01:00
networkxml2xmlin conf: new network bridge device attribute macTableManager 2014-12-08 14:41:37 -05:00
networkxml2xmlout conf: new network bridge device attribute macTableManager 2014-12-08 14:41:37 -05:00
networkxml2xmlupdatein
networkxml2xmlupdateout network: change default of forwardPlainNames to 'yes' 2014-02-04 12:00:26 +02:00
nodedevschemadata Add unique_id to nodedev output 2014-07-21 12:55:11 -04:00
nodeinfodata virNodeParseSocket: Take ARM into account 2014-06-20 15:59:08 +02:00
nwfilterxml2firewalldata Add a test suite for nwfilter ebiptables tech driver 2014-04-25 15:44:10 +01:00
nwfilterxml2xmlin
nwfilterxml2xmlout
qemuagentdata qemu: add test for qemuAgentGetFSInfo 2014-11-24 10:29:16 -05:00
qemucapabilitiesdata caps: introduce new QEMU capability for vgamem_mb device property 2014-11-24 22:05:56 +01:00
qemucaps2xmldata qemu: add unit tests for the capabilities xml 2014-03-26 13:41:25 +01:00
qemuhelpdata qemu: Don't try to parse -help for new QEMU 2014-11-13 21:25:50 +01:00
qemuhotplugtestdata video: cleanup usage of vram attribute and update documentation 2014-11-24 22:05:55 +01:00
qemumonitorjsondata
qemuxml2argvdata qemu: Create memory-backend-{ram,file} iff needed 2014-12-19 07:44:44 +01:00
qemuxml2xmloutdata qemu-command: introduce new vgamem attribute for QXL video device 2014-11-24 22:20:13 +01:00
qemuxmlnsdata
secretxml2xmlin Add tests for secret XML parsing 2014-02-14 16:47:14 +01:00
securityselinuxhelperdata tests: Flesh out securityselinuxhelper 2014-03-07 14:02:10 +01:00
securityselinuxlabeldata
sexpr2xmldata conf: Extend <loader/> and introduce <nvram/> 2014-09-10 09:38:07 +02:00
storagepoolschemadata
storagepoolxml2xmlin storage: Introduce 'managed' for the fchost parent 2014-11-12 10:18:28 -05:00
storagepoolxml2xmlout storage: Introduce 'managed' for the fchost parent 2014-11-12 10:18:28 -05:00
storagevolschemadata
storagevolxml2argvdata Fix a crash when cloning a volume with no backing store 2014-08-01 15:42:28 +02:00
storagevolxml2xmlin storage: unify permission formatting 2014-12-16 15:47:56 +01:00
storagevolxml2xmlout storage: unify permission formatting 2014-12-16 15:47:56 +01:00
sysinfodata aarch64: Fix sysinfo test. 2014-01-01 16:34:13 +00:00
vboxsnapshotxmldata tests: fix vbox snapshot xmls 2014-06-18 15:19:18 +02:00
vircaps2xmldata vircaps2xmltest: Introduce basic testing 2014-06-05 13:58:13 +02:00
virfiledata
virpcitestdata tests: Fix PCI test data filenames for Windows 2014-01-25 12:53:11 +01:00
virscsidata tests: Fix SCSI test data filenames for Windows 2014-03-29 21:14:15 +01:00
virusbtestdata/sys_bus_usb/devices Add tests for virUSBDeviceFind functions 2014-03-03 14:35:22 +01:00
vmwareverdata vmware: make version parsing more robust 2014-06-11 14:56:18 +02:00
vmx2xmldata conf: Add keyboard input device type 2014-02-19 09:16:31 +01:00
xencapsdata
xmconfigdata conf: Extend <loader/> and introduce <nvram/> 2014-09-10 09:38:07 +02:00
xml2sexprdata
xml2vmxdata
.valgrind.supp
bhyvexml2argvmock.c bhyve: tests: fix build 2014-09-18 13:37:12 +04:00
bhyvexml2argvtest.c drvbhyve: Use boot-order for grub-bhyve boot device 2014-11-13 15:40:48 +01:00
bhyvexml2xmltest.c tests: add bhyve xml2xml test 2014-04-08 20:50:36 +04:00
capabilityschematest
commandhelper.c Remove unnecessary curly brackets in tests/ 2014-11-14 17:13:36 +01:00
commandtest.c command: test umask support 2014-09-03 09:36:13 -06:00
cpuset
cputest.c Don't include non-migratable features in host-model 2014-09-05 12:45:19 +02:00
define-dev-segfault
domaincapsschematest Introduce domain_capabilities 2014-07-03 12:22:37 +02:00
domaincapstest.c Fix build in qemu_capabilities 2014-09-18 13:37:12 +04:00
domainconftest.c Indent top-level labels by one space in tests/ 2014-03-25 14:58:41 +01:00
domainschematest schema: bhyve and nmdm updates 2014-07-29 09:52:16 +04:00
domainsnapshotschematest
domainsnapshotxml2xmltest.c Use virBufferCheckError everywhere we report OOM error 2014-07-03 10:48:14 +02:00
esxutilstest.c Remove unnecessary curly brackets in tests/ 2014-11-14 17:13:36 +01:00
eventtest.c Remove unnecessary curly brackets in tests/ 2014-11-14 17:13:36 +01:00
fchosttest.c Indent top-level labels by one space in tests/ 2014-03-25 14:58:41 +01:00
fdstreamtest.c Use virFileFindResource to locate iohelper for fdstream 2014-04-25 11:59:46 +01:00
int-overflow
interfaceschematest
interfacexml2xmltest.c Require spaces around equality comparisons 2014-03-18 11:29:44 +01:00
jsontest.c Indent top-level labels by one space in tests/ 2014-03-25 14:58:41 +01:00
libvirtd-fail
libvirtd-pool
libvirtdconftest.c virconf: Introduce VIR_CONF_ULONG 2014-12-15 10:34:18 +01:00
lxcconf2xmltest.c Indent top-level labels by one space in tests/ 2014-03-25 14:58:41 +01:00
lxcxml2xmltest.c Domain config: write <features/> if some capabilities are set. 2014-07-30 14:21:55 +02:00
Makefile.am qemu: add test for qemuAgentGetFSInfo 2014-11-24 10:29:16 -05:00
metadatatest.c test: metadata: Improve test coverage 2014-07-17 17:04:12 +02:00
networkschematest
networkxml2conftest.c network: dnsmasq: Don't format lease file path 2014-12-03 14:22:40 +01:00
networkxml2firewalltest.c networkxml2firewalltest: fix build failure on freebsd 2014-04-30 10:16:09 +02:00
networkxml2xmltest.c conf: new network bridge device attribute macTableManager 2014-12-08 14:41:37 -05:00
networkxml2xmlupdatetest.c Indent top-level labels by one space in tests/ 2014-03-25 14:58:41 +01:00
nodedevschematest
nodedevxml2xmltest.c Add unique_id to nodedev output 2014-07-21 12:55:11 -04:00
nodeinfotest.c virNodeParseSocket: Take ARM into account 2014-06-20 15:59:08 +02:00
nwfilterebiptablestest.c nwfilter: Tear down temp. filters when tearing all filters 2014-04-30 12:51:38 -04:00
nwfilterschematest
nwfilterxml2firewalltest.c Add a test suite for nwfilter ebiptables tech driver 2014-04-25 15:44:10 +01:00
nwfilterxml2xmltest.c Indent top-level labels by one space in tests/ 2014-03-25 14:58:41 +01:00
objecteventtest.c Resolve Coverity CHECKED_RETURN 2014-09-15 10:44:27 -04:00
objectlocking.ml tests: cleanup object-locking test 2014-03-18 10:20:49 +01:00
oomtrace.pl
openvzutilstest.c Remove unnecessary curly brackets in tests/ 2014-11-14 17:13:36 +01:00
openvzutilstest.conf
pkix_asn1_tab.c
qemuagenttest.c qemu: add test for qemuAgentGetFSInfo 2014-11-24 10:29:16 -05:00
qemuargv2xmltest.c tests: Fix sharable typo 2014-12-09 10:02:20 -05:00
qemucapabilitiestest.c qemu: Add RDMA migration capabilities 2014-09-23 08:11:49 +02:00
qemucaps2xmltest.c capabilities: use bool instead of int 2014-07-14 08:00:46 -06:00
qemuhelptest.c Report original error when QMP probing fails with new QEMU 2014-12-05 10:57:46 +00:00
qemuhotplugtest.c qemuDomainAttachDeviceFlags: Parse device xml as inactive 2014-03-26 13:49:47 +01:00
qemumonitorjsontest.c tests: Fix misplaced parenthesis in qemumonitorjsontest 2014-12-04 11:43:22 +01:00
qemumonitortest.c
qemumonitortestutils.c tests: monitor: json: Fix error message when returning json in json 2014-06-03 17:19:24 +02:00
qemumonitortestutils.h
qemuxml2argvmock.c numa: split util/ and conf/ and support non-contiguous nodesets 2014-11-06 15:13:55 +01:00
qemuxml2argvtest.c qemu: Allow system pages to <memoryBacking/> 2014-12-15 13:36:47 +01:00
qemuxml2xmltest.c conf: Add channel state for virtio channels to the XML 2014-11-21 11:00:11 +01:00
qemuxmlnstest.c qemu: make advice from numad available when building commandline 2014-11-03 16:43:22 +01:00
read-bufsiz
read-non-seekable
reconnect.c util: make it easier to grab only regular command exit 2014-03-03 12:40:32 -07:00
schematestutils.sh
scsihosttest.c scsi_host: Introduce virFindSCSIHostByPCI 2014-07-21 12:55:11 -04:00
seclabeltest.c maint: use hanging curly braces 2014-09-04 15:18:43 -06:00
secretschematest Add tests for secret XML parsing 2014-02-14 16:47:14 +01:00
secretxml2xmltest.c Indent top-level labels by one space in tests/ 2014-03-25 14:58:41 +01:00
securityselinuxhelper.c maint: cleanup detection of const'ness of selinux ctx 2014-05-28 16:52:48 -06:00
securityselinuxlabeltest.c Remove unnecessary curly brackets in tests/ 2014-11-14 17:13:36 +01:00
securityselinuxtest.c Indent top-level labels by one space in tests/ 2014-03-25 14:58:41 +01:00
sexpr2xmltest.c xen: rename xenxs to xenconfig 2014-08-18 20:36:24 -06:00
shunloadhelper.c Use K&R style for curly braces in tests/ 2014-03-20 17:06:38 +01:00
shunloadtest.c Remove unnecessary curly brackets in tests/ 2014-11-14 17:13:36 +01:00
sockettest.c conf: add check if migration_host is a localhost address 2014-10-15 09:25:33 +02:00
ssh.c
start
statstest.c util: virstatslinux: make more generic 2014-07-15 22:00:59 +04:00
storagebackendsheepdogtest.c conf: track sizes directly in source struct 2014-04-02 06:03:00 -06:00
storagepoolschematest
storagepoolxml2xmltest.c storage: Introduce 'managed' for the fchost parent 2014-11-12 10:18:28 -05:00
storagevolschematest
storagevolxml2argvtest.c Fix a crash when cloning a volume with no backing store 2014-08-01 15:42:28 +02:00
storagevolxml2xmltest.c storage: unify permission formatting 2014-12-16 15:47:56 +01:00
sysinfotest.c Indent top-level labels by one space in tests/ 2014-03-25 14:58:41 +01:00
test_conf.c test_conf: Resolve Coverity RESOURCE_LEAK 2014-09-03 15:00:19 -04:00
test_conf.sh
test-lib.sh
testutils.c test: xml2xml: Print full filenames if xml2xml test fails 2014-11-21 11:00:10 +01:00
testutils.h test: xml2xml: Print full filenames if xml2xml test fails 2014-11-21 11:00:10 +01:00
testutilslxc.c capabilities: use bool instead of int 2014-07-14 08:00:46 -06:00
testutilslxc.h Don't leave empty first line in C source files 2014-03-18 12:17:12 +01:00
testutilsqemu.c tests: Add test cases for previous commit 2014-09-05 08:35:34 +02:00
testutilsqemu.h tests: Move qemu caps XML parsing into shared unit 2014-07-03 12:22:37 +02:00
testutilsxen.c capabilities: use bool instead of int 2014-07-14 08:00:46 -06:00
testutilsxen.h Don't leave empty first line in C source files 2014-03-18 12:17:12 +01:00
utiltest.c internal: add macro to round value to the next closest power of 2 2014-11-24 22:05:55 +01:00
vboxsnapshotxmltest.c vboxsnapshotxmltest: Don't write to a file in abs_srcdir 2014-07-01 16:46:29 +02:00
vcpupin virsh: forbid negative vcpu argument to vcpupin 2014-06-12 14:06:21 +02:00
viralloctest.c Add test suite for viralloc APIs 2014-04-25 11:29:55 +01:00
viratomictest.c
virauthconfigtest.c Indent top-level labels by one space in tests/ 2014-03-25 14:58:41 +01:00
virbitmaptest.c bitmap: add virBitmapLastSetBit for finding the last bit position of bitmap 2014-11-04 07:03:36 +01:00
virbuftest.c Remove unnecessary curly brackets in tests/ 2014-11-14 17:13:36 +01:00
vircaps2xmltest.c capabilities: use bool instead of int 2014-07-14 08:00:46 -06:00
vircapstest.c capabilities: use bool instead of int 2014-07-14 08:00:46 -06:00
vircgroupmock.c Indent top-level labels by one space in tests/ 2014-03-25 14:58:41 +01:00
vircgrouptest.c Extend virCgroupGetPercpuStats to fill in vcputime too 2014-04-09 16:24:08 +02:00
vircryptotest.c Add helper APIs for generating cryptographic hashes 2014-03-10 16:39:18 +00:00
virdbustest.c dbus: fix arrays of bools 2014-11-25 08:47:12 -07:00
virdrivermoduletest.c virdrivermoduletest: Test all the modules 2014-08-27 07:41:48 +02:00
virendiantest.c Indent top-level labels by one space in tests/ 2014-03-25 14:58:41 +01:00
virfiletest.c
virfirewalltest.c tests: Add more test suite mock helpers 2014-09-11 15:40:50 -06:00
virhashdata.h
virhashtest.c Remove unnecessary curly brackets in tests/ 2014-11-14 17:13:36 +01:00
virhostdevtest.c maint: avoid static zero init in tests 2014-10-29 09:55:09 -06:00
viridentitytest.c Indent top-level labels by one space in tests/ 2014-03-25 14:58:41 +01:00
viriscsitest.c Indent top-level labels by one space in tests/ 2014-03-25 14:58:41 +01:00
virkeycodetest.c Indent top-level labels by one space in tests/ 2014-03-25 14:58:41 +01:00
virkeyfiletest.c Indent top-level labels by one space in tests/ 2014-03-25 14:58:41 +01:00
virkmodtest.c Indent top-level labels by one space in tests/ 2014-03-25 14:58:41 +01:00
virlockspacetest.c Indent top-level labels by one space in tests/ 2014-03-25 14:58:41 +01:00
virlogtest.c
virmock.h tests: fix documentation for mocking methods 2014-11-27 11:17:56 +01:00
virmockdbus.c tests: avoid dlsym mocking on mingw 2014-05-20 15:16:22 -06:00
virnetdevbandwidthmock.c Iface: disallow network tuning in session mode globally 2014-11-06 14:28:37 +01:00
virnetdevbandwidthtest.c Iface: disallow network tuning in session mode globally 2014-11-06 14:28:37 +01:00
virnetmessagetest.c Indent top-level labels by one space in tests/ 2014-03-25 14:58:41 +01:00
virnetserverclientmock.c
virnetserverclienttest.c
virnetsockettest.c Indent top-level labels by one space in tests/ 2014-03-25 14:58:41 +01:00
virnettlscontexttest.c tests: force FIPS testing mode with new enough GNU TLS versions 2014-09-04 11:56:39 +02:00
virnettlshelpers.c Fix assignment of comparison against zero 2014-07-16 09:39:57 +02:00
virnettlshelpers.h
virnettlssessiontest.c tests: force FIPS testing mode with new enough GNU TLS versions 2014-09-04 11:56:39 +02:00
virpcimock.c Replace Pci with PCI throughout 2014-04-08 11:15:55 +01:00
virpcitest.c Indent top-level labels by one space in tests/ 2014-03-25 14:58:41 +01:00
virpolkittest.c Convert polkit code to use DBus API instead of CLI helper 2014-09-24 15:29:22 +01:00
virportallocatortest.c maint: avoid static zero init in tests 2014-10-29 09:55:09 -06:00
virscsitest.c maint: avoid static zero init in tests 2014-10-29 09:55:09 -06:00
virsh-all
virsh-optparse virsh: Add keepalive in new vshConnect function 2014-03-18 08:27:29 +01:00
virsh-schedinfo
virsh-synopsis
virsh-undefine
virsh-uriprecedence
virshtest.c Indent top-level labels by one space in tests/ 2014-03-25 14:58:41 +01:00
virstoragetest.c storage: Allow parsing of RBD backing strings when building backing chain 2014-11-21 14:37:02 +01:00
virstringtest.c test: Add test to verify helpers used for backing file name parsing 2014-10-29 17:10:42 +01:00
virsystemdtest.c tests: Add more test suite mock helpers 2014-09-11 15:40:50 -06:00
virt-aa-helper-test video: cleanup usage of vram attribute and update documentation 2014-11-24 22:05:55 +01:00
virtimetest.c Remove unnecessary curly brackets in tests/ 2014-11-14 17:13:36 +01:00
viruritest.c test: Add test to verify helpers used for backing file name parsing 2014-10-29 17:10:42 +01:00
virusbmock.c Indent top-level labels by one space in tests/ 2014-03-25 14:58:41 +01:00
virusbtest.c Indent top-level labels by one space in tests/ 2014-03-25 14:58:41 +01:00
vmwarevertest.c vmware: make version parsing more robust 2014-06-11 14:56:18 +02:00
vmx2xmltest.c Remove unnecessary curly brackets in tests/ 2014-11-14 17:13:36 +01:00
xencapstest.c Use K&R style for curly braces in tests/ 2014-03-20 17:06:38 +01:00
xmconfigtest.c xen: rename xenxs to xenconfig 2014-08-18 20:36:24 -06:00
xml2sexprtest.c xen: rename xenxs to xenconfig 2014-08-18 20:36:24 -06:00
xml2vmxtest.c Remove unnecessary curly brackets in tests/ 2014-11-14 17:13:36 +01:00