Skip to content
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.

Commit

Permalink
virtcontainers: qemu: x86: Support "virt" machine type
Browse files Browse the repository at this point in the history
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 kata-containers#558

Signed-off-by: Sebastien Boeuf <[email protected]>
  • Loading branch information
Sebastien Boeuf authored and lifupan committed Sep 17, 2018
1 parent 0bb930b commit a210684
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions virtcontainers/qemu_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ var supportedQemuMachines = []govmmQemu.Machine{
Type: QemuQ35,
Options: defaultQemuMachineOptions,
},
{
Type: QemuVirt,
Options: defaultQemuMachineOptions,
},
}

// MaxQemuVCPUs returns the maximum number of vCPUs supported
Expand Down
4 changes: 2 additions & 2 deletions virtcontainers/qemu_arch_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down

0 comments on commit a210684

Please sign in to comment.