virtcontainers: qemu: x86: Support "virt" machine type

In order to start playing with the "virt" machine type for Kata,
we need this new machine type to be part of the list of supported
machines for qemu on x86 architecture.

Fixes #558

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2018-08-08 13:37:01 -07:00
parent 0bcb32f704
commit ef74bc533d
2 changed files with 6 additions and 2 deletions

View File

@ -67,6 +67,10 @@ var supportedQemuMachines = []govmmQemu.Machine{
Type: QemuQ35,
Options: defaultQemuMachineOptions,
},
{
Type: QemuVirt,
Options: defaultQemuMachineOptions,
},
}
// MaxQemuVCPUs returns the maximum number of vCPUs supported

View File

@ -131,10 +131,10 @@ const (
// QemuQ35 is the QEMU Q35 machine type for amd64
QemuQ35 = "q35"
// QemuVirt is the QEMU virt machine type for aarch64
// QemuVirt is the QEMU virt machine type for aarch64 or amd64
QemuVirt = "virt"
// QemuPseries is a QEMU virt machine type for for ppc64le
// QemuPseries is a QEMU virt machine type for ppc64le
QemuPseries = "pseries"
)