mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-30 09:13:29 +00:00
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:
parent
c89eb81dec
commit
49be8ee21c
@ -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 = ""
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user