mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-14 15:44:58 +00:00
Merge pull request #1449 from alicefr/thread_id
s390x: not set socketID and threadID
This commit is contained in:
commit
c884f65a26
@ -1115,8 +1115,8 @@ func (q *qemu) hotplugAddCPUs(amount uint32) (uint32, error) {
|
|||||||
coreID := fmt.Sprintf("%d", hc.Properties.Core)
|
coreID := fmt.Sprintf("%d", hc.Properties.Core)
|
||||||
threadID := fmt.Sprintf("%d", hc.Properties.Thread)
|
threadID := fmt.Sprintf("%d", hc.Properties.Thread)
|
||||||
|
|
||||||
// If CPU type is IBM pSeries, we do not set socketID and threadID
|
// If CPU type is IBM pSeries or Z, we do not set socketID and threadID
|
||||||
if machine.Type == "pseries" {
|
if machine.Type == "pseries" || machine.Type == "s390-ccw-virtio" {
|
||||||
socketID = ""
|
socketID = ""
|
||||||
threadID = ""
|
threadID = ""
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user