s390x: not set socketID and threadID

For cpu hotplug, the options socketID and threadID are not used.

Fixes: #1448

Signed-off-by: Alice Frosi <afrosi@de.ibm.com>
This commit is contained in:
Alice Frosi 2019-03-29 13:51:44 +01:00
parent c89eb81dec
commit 49be8ee21c

View File

@ -1109,8 +1109,8 @@ func (q *qemu) hotplugAddCPUs(amount uint32) (uint32, error) {
coreID := fmt.Sprintf("%d", hc.Properties.Core)
threadID := fmt.Sprintf("%d", hc.Properties.Thread)
// If CPU type is IBM pSeries, we do not set socketID and threadID
if machine.Type == "pseries" {
// If CPU type is IBM pSeries or Z, we do not set socketID and threadID
if machine.Type == "pseries" || machine.Type == "s390-ccw-virtio" {
socketID = ""
threadID = ""
}