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

@@ -11,6 +11,7 @@ import (
"os"
"testing"
"github.com/kata-containers/kata-containers/src/runtime/pkg/govmm"
govmmQemu "github.com/kata-containers/kata-containers/src/runtime/pkg/govmm/qemu"
"github.com/stretchr/testify/assert"
)
@@ -54,10 +55,10 @@ func TestQemuArm64MemoryTopology(t *testing.T) {
assert.Equal(expectedMemory, m)
}
func TestMaxQemuVCPUs(t *testing.T) {
func TestMaxVCPUs(t *testing.T) {
assert := assert.New(t)
vCPUs := MaxQemuVCPUs()
vCPUs := govmm.MaxVCPUs()
assert.Equal(uint32(123), vCPUs)
}