From 7f5301249b0af87e16b024c0c5f67e4e8ef0307f Mon Sep 17 00:00:00 2001 From: Cezar Craciunoiu Date: Fri, 11 Aug 2023 11:06:29 +0300 Subject: [PATCH] fix(qemu): Add pvpanic device only for x86_64 Signed-off-by: Cezar Craciunoiu --- machine/qemu/v1alpha1.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/machine/qemu/v1alpha1.go b/machine/qemu/v1alpha1.go index a8c002b3c..c29f657a1 100644 --- a/machine/qemu/v1alpha1.go +++ b/machine/qemu/v1alpha1.go @@ -244,7 +244,13 @@ func (service *machineV1alpha1Service) Create(ctx context.Context, machine *mach }), WithDisplay(QemuDisplayNone{}), WithParallel(QemuHostCharDevNone{}), - WithDevice(QemuDevicePvpanic{}), + } + + // Add pvpanic device only if architecture is x86_64 + if bin == QemuSystemX86 { + qopts = append(qopts, + WithDevice(QemuDevicePvpanic{}), + ) } // TODO: Parse Rootfs types