Skip to content

Commit

Permalink
fix(qemu): Add pvpanic device only for x86_64
Browse files Browse the repository at this point in the history
Signed-off-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
  • Loading branch information
craciunoiuc committed Aug 11, 2023
1 parent 2ffc259 commit 7f53012
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion machine/qemu/v1alpha1.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f53012

Please sign in to comment.