]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vmx: write cpuid.coresPerSocket back from CPU topology
authorPino Toscano <ptoscano@redhat.com>
Thu, 19 Apr 2018 13:03:38 +0000 (15:03 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 20 Apr 2018 07:11:01 +0000 (09:11 +0200)
commitf10a1a95a213b2266b6a7b5ac6e9d65cbb168cd5
treef699a198c5c879383a1a3e5fb1dd61d6a9a7a1b8
parent5cceadcbac033349ee9621bc87f98e0ced19b2ad
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>
src/vmx/vmx.c
tests/xml2vmxdata/xml2vmx-esx-in-the-wild-9.vmx [new file with mode: 0644]
tests/xml2vmxdata/xml2vmx-esx-in-the-wild-9.xml [new file with mode: 0644]
tests/xml2vmxtest.c