File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -333,6 +333,8 @@ INITRD ?=
333
333
RDINIT ?= /sbin/init
334
334
QEMU_KERNEL_IMAGE ?= $(KERNEL_IMAGE )
335
335
ECHR ?= 1
336
+ ROOT ?= /dev/vda
337
+ RW ?= rw
336
338
337
339
QEMU_ARGS := \
338
340
-m $(MEM ) \
@@ -353,7 +355,7 @@ ifneq ($(INITRD),)
353
355
QEMU_ARGS += -initrd $(INITRD )
354
356
else
355
357
QEMU_ARGS += -drive file=$(ROOTFS ) ,if=virtio,format=$(ROOTFS_FORMAT )
356
- QEMU_EXTRA_KERNEL_CMDLINE += root=/dev/vda rw
358
+ QEMU_EXTRA_KERNEL_CMDLINE += root=$( ROOT ) $( RW )
357
359
endif
358
360
359
361
ifeq ($(GDB ) ,1)
@@ -364,7 +366,7 @@ ifeq ($(ARCH),x86_64)
364
366
QEMU_BIN := qemu-system-x86_64
365
367
QEMU_ARGS += \
366
368
-cpu kvm64,+smep,+smap \
367
- -append "8250.nr_uarts=1 console=ttyS0 selinux=0 kpti no5lvl $(QEMU_EXTRA_KERNEL_CMDLINE ) "
369
+ -append "console=ttyS0 selinux=0 kpti no5lvl $(QEMU_EXTRA_KERNEL_CMDLINE ) "
368
370
369
371
# We can't use KVM with GitHub Actions CI
370
372
ifneq ($(CI),true)
You can’t perform that action at this time.
0 commit comments