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:
Fabiano Fidêncio 2023-08-21 15:21:34 +02:00
parent 1e34220c41
commit d1b54ede29

View File

@ -618,6 +618,13 @@ func (q *qemu) CreateVM(ctx context.Context, id string, network Network, hypervi
// headaches in the future.
knobs.FileBackedMem = 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
}
}