mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-17 06:14:26 +01:00
qemu: tdx: Workaround SMP issue with TDX 1.5
`...,sockets=1,cores=numvcpus,threads=1,...` must be used. Fixes: #7770 Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
@@ -618,6 +618,13 @@ func (q *qemu) CreateVM(ctx context.Context, id string, network Network, hypervi
|
|||||||
// headaches in the future.
|
// headaches in the future.
|
||||||
knobs.FileBackedMem = false
|
knobs.FileBackedMem = false
|
||||||
knobs.MemShared = false
|
knobs.MemShared = false
|
||||||
|
|
||||||
|
// SMP is currently broken with TDX 1.5, and
|
||||||
|
// we must ensure we use something like:
|
||||||
|
// `...,sockets=1,cores=numvcpus,threads=1,...`
|
||||||
|
smp.Sockets = 1
|
||||||
|
smp.Cores = q.config.NumVCPUs
|
||||||
|
smp.Threads = 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user