runtime: remove wrong qemu-system-x86_64 option

qemu-system-x86_64 does not support "-machine virt".
(this is only supported by arm,aarch64)
<https://people.redhat.com/~cohuck/2022/01/05/qemu-machine-types.html>

Fixes: #11229

Signed-off-by: Shunsuke Kimura <pbrehpuum@gmail.com>
This commit is contained in:
Shunsuke Kimura 2025-05-02 04:12:14 +09:00
parent 049a4ef3a8
commit 3dba8ddd98
2 changed files with 2 additions and 7 deletions

View File

@ -72,10 +72,6 @@ var supportedQemuMachines = []govmmQemu.Machine{
Type: QemuQ35,
Options: defaultQemuMachineOptions,
},
{
Type: QemuVirt,
Options: defaultQemuMachineOptions,
},
{
Type: QemuMicrovm,
Options: defaultQemuMachineOptions,
@ -169,8 +165,7 @@ func newQemuArch(config HypervisorConfig) (qemuArch, error) {
func (q *qemuAmd64) capabilities(hConfig HypervisorConfig) types.Capabilities {
var caps types.Capabilities
if q.qemuMachine.Type == QemuQ35 ||
q.qemuMachine.Type == QemuVirt {
if q.qemuMachine.Type == QemuQ35 {
caps.SetBlockDeviceHotplugSupport()
caps.SetNetworkDeviceHotplugSupported()
}

View File

@ -221,7 +221,7 @@ const (
// QemuMicrovm is the QEMU microvm machine type for amd64
QemuMicrovm = "microvm"
// QemuVirt is the QEMU virt machine type for aarch64 or amd64
// QemuVirt is the QEMU virt machine type for aarch64 or arm
QemuVirt = "virt"
// QemuPseries is a QEMU virt machine type for ppc64le