Skip to content

Commit 1f2f341

Browse files
zx2c4kuba-moo
authored andcommitted
wireguard: selftests: use virt machine on m68k
This should be a bit more stable hopefully. Signed-off-by: Jason A. Donenfeld <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 829be05 commit 1f2f341

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

tools/testing/selftests/wireguard/qemu/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,11 @@ QEMU_ARCH := m68k
208208
KERNEL_ARCH := m68k
209209
KERNEL_BZIMAGE := $(KERNEL_BUILD_PATH)/vmlinux
210210
KERNEL_CMDLINE := $(shell sed -n 's/CONFIG_CMDLINE=\(.*\)/\1/p' arch/m68k.config)
211+
QEMU_VPORT_RESULT := virtio-serial-device
211212
ifeq ($(HOST_ARCH),$(ARCH))
212-
QEMU_MACHINE := -cpu host,accel=kvm -machine q800 -append $(KERNEL_CMDLINE)
213+
QEMU_MACHINE := -cpu host,accel=kvm -machine virt -append $(KERNEL_CMDLINE)
213214
else
214-
QEMU_MACHINE := -machine q800 -smp 1 -append $(KERNEL_CMDLINE)
215+
QEMU_MACHINE := -machine virt -smp 1 -append $(KERNEL_CMDLINE)
215216
endif
216217
else ifeq ($(ARCH),riscv64)
217218
CHOST := riscv64-linux-musl
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
CONFIG_MMU=y
2+
CONFIG_VIRT=y
23
CONFIG_M68KCLASSIC=y
3-
CONFIG_M68040=y
4-
CONFIG_MAC=y
5-
CONFIG_SERIAL_PMACZILOG=y
6-
CONFIG_SERIAL_PMACZILOG_TTYS=y
7-
CONFIG_SERIAL_PMACZILOG_CONSOLE=y
4+
CONFIG_VIRTIO_CONSOLE=y
85
CONFIG_COMPAT_32BIT_TIME=y
9-
CONFIG_CMDLINE="console=ttyS0 wg.success=ttyS1 panic_on_warn=1"
6+
CONFIG_CMDLINE="console=ttyGF0 wg.success=vport0p1 panic_on_warn=1"
107
CONFIG_FRAME_WARN=1024

0 commit comments

Comments
 (0)