Merge pull request #1449 from alicefr/thread_id

s390x: not set socketID and threadID
This commit is contained in:
Julio Montes 2019-04-08 08:01:40 -05:00 committed by GitHub
commit c884f65a26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1115,8 +1115,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 = ""
}