Skip to content

Commit

Permalink
Set 8250.nr_uarts when running x86 kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
gsingh93 committed Apr 8, 2024
1 parent 9e9109e commit 88a208a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,10 @@ endif

ifeq ($(ARCH),x86_64)
QEMU_BIN := qemu-system-x86_64
QEMU_KERNEL_CMDLINE += console=ttyS0 kpti no5lvl

# 8250.nr_uarts=1 is needed because some Android kernels set
# `CONFIG_SERIAL_8250_RUNTIME_UARTS` to zero
QEMU_KERNEL_CMDLINE += console=ttyS0 kpti no5lvl 8250.nr_uarts=1

QEMU_ARGS += -cpu kvm64,+smep,+smap

Expand Down
5 changes: 5 additions & 0 deletions config/config.fragment
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,8 @@ CONFIG_TRACING=y

# Allow lvl5 paging
CONFIG_X86_5LEVEL=y

# Some ACK kernels set this to zero. Technically we don't need it because we
# also set it in the kernel command line, but it helps if someone wants to use
# our prebuilt kernels and run them manually
CONFIG_SERIAL_8250_RUNTIME_UARTS=4

0 comments on commit 88a208a

Please sign in to comment.