libvirt/tests
Pino Toscano f10a1a95a2 vmx: write cpuid.coresPerSocket back from CPU topology
When writing the VMX file from the domain XML, write
cpuid.coresPerSocket if there is a specified CPU topology in the guest.

Use the domain XML of esx-in-the-wild-9 in vmx2xml as testcase for
xml2vmxtest.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
Acked-by: Richard W.M. Jones <rjones@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
2018-04-20 09:11:01 +02:00
..
bhyveargv2xmldata
bhyvexml2argvdata
bhyvexml2xmloutdata
capabilityschemadata
commanddata tests: fix typo 2017-11-20 13:22:48 +01:00
cputestdata cputest: New test for Intel Core i5-650 2018-04-18 11:39:53 +02:00
domaincapsschemadata tests: qemucapabilities: Drop mostly duplicated data 2018-03-23 20:27:52 +01:00
domainconfdata
domainschemadata
domainsnapshotxml2xmlin
domainsnapshotxml2xmlout tests: domainsnapshotxml2xml: Remove testing with allowed format detection 2018-03-13 13:54:06 +01:00
fchostdata/fc_host
genericxml2xmlindata
genericxml2xmloutdata
interfaceschemadata
libxlxml2domconfigdata tests: check CPU features handling in libxl driver 2018-04-17 21:15:27 -06:00
lxcconf2xmldata
lxcxml2xmldata
lxcxml2xmloutdata
networkxml2confdata
networkxml2firewalldata
networkxml2xmlin network: don't add "no-resolv" if we still need DNS servers from resolv.conf 2017-03-21 11:25:59 -04:00
networkxml2xmlout
networkxml2xmlupdatein
networkxml2xmlupdateout
nodedevschemadata
nssdata
nwfilterxml2firewalldata
nwfilterxml2xmlin
nwfilterxml2xmlout
qemuagentdata
qemuargv2xmldata
qemucapabilitiesdata qemu: caps: Add capability for 'write-cache' parameter of disk frontends 2018-04-19 11:20:34 +02:00
qemucaps2xmldata qemu: command: Use -name guest= if available 2016-05-16 10:30:38 -04:00
qemuhotplugtestcpus
qemuhotplugtestdevices
qemuhotplugtestdomains qemu: Don't assign alias to disabled balloon device 2018-03-19 21:22:43 +01:00
qemumemlockdata
qemumigparamsdata qemumigparamstest: Add test data for TLS parameters 2018-04-17 10:46:23 +02:00
qemumonitorjsondata tests: add testcase for s390 query-cpus-fast 2018-04-17 12:45:26 -04:00
qemustatusxml2xmldata qemu: Figure out nodeset bitmap size correctly 2018-04-19 17:57:54 +02:00
qemuxml2argvdata qemu: Format 'write-cache' parameter for disk frontends 2018-04-19 11:20:34 +02:00
qemuxml2startupxmloutdata qemu: domain: Move initialization of disk cachemode for <shareable> disks 2018-04-03 15:48:38 +02:00
qemuxml2xmloutdata tests: Use pcie-to-pci-bridge for aarch64-traditional-pci 2018-04-06 14:12:25 +02:00
secretxml2xmlin
securityselinuxhelperdata
securityselinuxlabeldata
sexpr2xmldata libxl: add support for memballoon device 2018-04-11 11:47:33 -06:00
storagepoolschemadata
storagepoolxml2xmlin
storagepoolxml2xmlout
storagevolschemadata
storagevolxml2argvdata storage: extend preallocation flags support for qemu-img 2018-04-11 10:15:58 +02:00
storagevolxml2xmlin
storagevolxml2xmlout
sysinfodata virsysinfo: Use more virSkipSpacesBackwards() 2018-03-14 17:43:40 +01:00
vboxsnapshotxmldata
vircaps2xmldata
vircgroupdata
virconfdata
virfilecachedata
virfiledata
virhostcpudata
virjsondata
virmacmaptestdata
virnetdaemondata
virnetdevtestdata/sys/class/net
virpcitestdata
virresctrldata
virscsidata
virstorageutildata
virusbtestdata/sys_bus_usb/devices
vmwareverdata
vmx2xmldata vmx: convert cpuid.coresPerSocket for CPU topology 2018-04-20 09:09:29 +02:00
xlconfigdata tests: add test case for CPUID in xenconfig driver 2018-04-17 21:15:27 -06:00
xmconfigdata libxl: add support for memballoon device 2018-04-11 11:47:33 -06:00
xml2sexprdata tests: move xml2sexpr tests to WITH_LIBXL 2018-04-09 11:33:30 -06:00
xml2vmxdata vmx: write cpuid.coresPerSocket back from CPU topology 2018-04-20 09:11:01 +02:00
.valgrind.supp
bhyveargv2xmlmock.c
bhyveargv2xmltest.c
bhyvexml2argvmock.c
bhyvexml2argvtest.c
bhyvexml2xmltest.c tests: bhyvexml2xml: Fix call to testCompareDomXML2XMLFiles 2018-03-13 15:32:31 +01:00
check-file-access.pl
commandhelper.c tests: Return failure if log not fopen'd 2018-04-19 14:24:12 -04:00
commandtest.c
cputest.c cputest: New test for Intel Core i5-650 2018-04-18 11:39:53 +02:00
domaincapsmock.c
domaincapstest.c tests: qemucapabilities: Drop mostly duplicated data 2018-03-23 20:27:52 +01:00
domainconftest.c
domainsnapshotxml2xmltest.c tests: domainsnapshotxml2xml: Remove testing with allowed format detection 2018-03-13 13:54:06 +01:00
esxutilstest.c
eventtest.c
fchosttest.c
fdstreamtest.c
file_access_whitelist.txt
genericxml2xmltest.c tests: util: Remove callback from testCompareDomXML2XMLFiles 2018-03-13 13:54:11 +01:00
interfacexml2xmltest.c
libvirtd-fail
libvirtd-pool
libxlxml2domconfigtest.c tests: check CPU features handling in libxl driver 2018-04-17 21:15:27 -06:00
lxcconf2xmltest.c
lxcxml2xmltest.c tests: util: Remove callback from testCompareDomXML2XMLFiles 2018-03-13 13:54:11 +01:00
Makefile.am tests: Compile and link virmocklibxl with libxml 2018-04-18 10:02:14 +02:00
metadatatest.c
networkxml2conftest.c
networkxml2firewalltest.c
networkxml2xmltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
networkxml2xmlupdatetest.c
nodedevxml2xmltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
nsslinktest.c
nssmock.c
nsstest.c
nwfilterebiptablestest.c
nwfilterxml2firewalltest.c
nwfilterxml2xmltest.c
objecteventtest.c
objectlocking.ml
oomtrace.pl
openvzutilstest.c
openvzutilstest.conf
pkix_asn1_tab.c
qemuagenttest.c
qemuargv2xmltest.c
qemublocktest.c util: json: Fix freeing of objects appended to virJSONValue 2018-04-03 13:34:33 +02:00
qemucapabilitiestest.c Require QEMU 1.5.0 2018-04-10 15:16:44 +02:00
qemucaps2xmlmock.c
qemucaps2xmltest.c
qemucapsfixreplies
qemucapsprobe.c Force QMP capability probing 2018-04-10 15:16:23 +02:00
qemucapsprobemock.c
qemucommandutiltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
qemucpumock.c
qemuhotplugtest.c tests: qemumonitor: Allow testing schema for fake monitor interactions 2018-03-23 14:52:07 +01:00
qemumemlocktest.c
qemumigparamstest.c qemumigparamstest: Add test data for TLS parameters 2018-04-17 10:46:23 +02:00
qemumonitorjsontest.c tests: add testcase for s390 query-cpus-fast 2018-04-17 12:45:26 -04:00
qemumonitortest.c
qemumonitortestutils.c tests: add qemumonitorjson tests for query-cpus-fast 2018-04-17 12:45:26 -04:00
qemumonitortestutils.h tests: add qemumonitorjson tests for query-cpus-fast 2018-04-17 12:45:26 -04:00
qemuqapischema.json tests: Add data file with QEMU QAPI schema 2018-03-23 14:52:07 +01:00
qemuxml2argvmock.c tests: mock qemuInterfaceOpenVhostNet 2018-04-17 14:02:09 +02:00
qemuxml2argvtest.c tests: qemuxml2argv: Test formatting of 'write-cache' parameter 2018-04-19 11:20:34 +02:00
qemuxml2xmltest.c qemu: deprecate QEMU_CAPS_DISPLAY 2018-04-17 14:49:21 +02:00
scsihosttest.c
seclabeltest.c
secretxml2xmltest.c
securityselinuxhelper.c securityselinuxhelper: Adapt to virmock.h 2016-05-14 09:22:12 +02:00
securityselinuxlabeltest.c
securityselinuxtest.c
sexpr2xmltest.c tests: move sexpr2xml tests to WITH_LIBXL 2018-04-09 11:34:35 -06:00
shunloadhelper.c
shunloadtest.c
sockettest.c
ssh.c
storagebackendsheepdogtest.c
storagepoolxml2xmltest.c
storagevolxml2argvtest.c
storagevolxml2xmltest.c
sysinfotest.c
test-lib.sh
test-wrap-argv.pl
testutils.c tests: Create full host NUMA topology in more cases 2018-04-19 17:57:52 +02:00
testutils.h tests: Create full host NUMA topology in more cases 2018-04-19 17:57:52 +02:00
testutilshostcpus.h
testutilslxc.c
testutilslxc.h Don't leave empty first line in C source files 2014-03-18 12:17:12 +01:00
testutilsqemu.c tests: Create full host NUMA topology in more cases 2018-04-19 17:57:52 +02:00
testutilsqemu.h tests: qemu: Add helper code to lookup latest capability file 2018-04-19 11:20:34 +02:00
testutilsqemuschema.c tests: qemu: Add infrastructure for QAPI schema testing 2018-03-23 14:52:07 +01:00
testutilsqemuschema.h tests: qemu: Add infrastructure for QAPI schema testing 2018-03-23 14:52:07 +01:00
testutilsxen.c Remove xencaps tests and data files 2018-04-09 11:37:15 -06:00
testutilsxen.h Remove xencaps tests and data files 2018-04-09 11:37:15 -06:00
utiltest.c
vboxsnapshotxmltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
viralloctest.c tests: Rename VIRT_TEST_* macros to VIR_TEST_* 2017-04-04 17:30:03 +02:00
viratomictest.c
virauthconfigtest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virbitmaptest.c
virbuftest.c
vircaps2xmltest.c
vircapstest.c tests: Create full host NUMA topology in more cases 2018-04-19 17:57:52 +02:00
vircgroupmock.c
vircgrouptest.c
virconftest.c
vircryptotest.c
virdbusmock.c
virdbustest.c
virdeterministichashmock.c
virdrivermoduletest.c Remove xencaps tests and data files 2018-04-09 11:37:15 -06:00
virendiantest.c tests: Rename VIRT_TEST_* macros to VIR_TEST_* 2017-04-04 17:30:03 +02:00
virfilecachemock.c
virfilecachetest.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
virfiletest.c
virfilewrapper.c
virfilewrapper.h
virfirewalltest.c
virhashdata.h
virhashtest.c util: don't check for parallel iteration in hash-related functions 2018-04-11 11:18:37 +02:00
virhostcpumock.c lib: Fix c99 style comments 2017-04-27 14:13:19 +02:00
virhostcputest.c
virhostdevtest.c
viridentitytest.c
viriscsitest.c
virjsontest.c virjsontest: Use a more stable floating point number for testing 2018-04-04 15:08:32 +02:00
virkeycodetest.c
virkeyfiletest.c
virkmodtest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virlockspacetest.c
virlogtest.c
virmacmaptest.c
virmock.h
virmocklibxl.c virmocklibxl.c: Fix include of virfile.h 2018-04-18 09:59:52 +02:00
virnetdaemonmock.c
virnetdaemontest.c
virnetdevbandwidthmock.c
virnetdevbandwidthtest.c
virnetdevmock.c
virnetdevtest.c
virnetmessagetest.c
virnetserverclientmock.c
virnetserverclienttest.c tests: Fix incorrect check for virNetServerClientClose call 2018-04-19 15:03:57 -04:00
virnetsockettest.c
virnettlscontexttest.c
virnettlshelpers.c
virnettlshelpers.h
virnettlssessiontest.c
virnumamock.c
virpcimock.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virpcitest.c
virpolkittest.c
virportallocatormock.c
virportallocatortest.c
virrandommock.c
virresctrltest.c tests: Add virresctrltest 2018-01-25 17:16:08 +01:00
virrotatingfiletest.c
virschematest.c Remove xencaps tests and data files 2018-04-09 11:37:15 -06:00
virscsitest.c
virsh-cpuset
virsh-define-dev-segfault
virsh-int-overflow
virsh-optparse
virsh-read-bufsiz
virsh-read-non-seekable
virsh-schedinfo
virsh-self-test
virsh-start
virsh-undefine
virsh-uriprecedence
virsh-vcpupin
virshtest.c
virstoragetest.c
virstorageutiltest.c
virstringtest.c
virsystemdtest.c
virt-aa-helper-test virt-aa-helper: test: check for expected profile content 2018-03-23 07:14:58 +01:00
virt-admin-self-test
virtestmock.c
virtimetest.c
virtypedparamtest.c
viruritest.c
virusbmock.c
virusbtest.c
vmwarevertest.c
vmx2xmltest.c vmx: convert cpuid.coresPerSocket for CPU topology 2018-04-20 09:09:29 +02:00
xlconfigtest.c tests: add test case for CPUID in xenconfig driver 2018-04-17 21:15:27 -06:00
xmconfigtest.c tests: move xmconfig tests to WITH_LIBXL 2018-04-09 11:36:17 -06:00
xml2sexprtest.c tests: move xml2sexpr tests to WITH_LIBXL 2018-04-09 11:33:30 -06:00
xml2vmxtest.c vmx: write cpuid.coresPerSocket back from CPU topology 2018-04-20 09:11:01 +02:00