virtcontainers: Make max vCPU config less QEMU specific

Even though it's still actually defined as the QEMU upper bound,
it's now abstracted away through govmm.

Signed-off-by: Samuel Ortiz <s.ortiz@apple.com>
This commit is contained in:
Samuel Ortiz
2021-11-24 18:48:57 +01:00
parent a5f6df6a49
commit b28d0274ff
12 changed files with 21 additions and 51 deletions

View File

@@ -173,13 +173,13 @@ func TestQemuArchBaseCPUTopology(t *testing.T) {
expectedSMP := govmmQemu.SMP{
CPUs: vcpus,
Sockets: defaultMaxQemuVCPUs,
Sockets: defaultMaxVCPUs,
Cores: defaultCores,
Threads: defaultThreads,
MaxCPUs: defaultMaxQemuVCPUs,
MaxCPUs: defaultMaxVCPUs,
}
smp := qemuArchBase.cpuTopology(vcpus, defaultMaxQemuVCPUs)
smp := qemuArchBase.cpuTopology(vcpus, defaultMaxVCPUs)
assert.Equal(expectedSMP, smp)
}