Skip to content

RFC Make allmodconfig boot in qemu-arm64

Anders Roxell lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3config: provide a fragment to enable gdb for qemukernel/configs/qemu-gdb.config+7 -04 replies
2/3lib/ubsan: default UBSAN_ALIGNMENT to not setlib/Kconfig.ubsan+9 -50 replies
3/3arm64: add a new config option KTEST_RUNNABLEarch/arm64/Kconfig drivers/tty/hvc/Kconfig init/Kconfig+10 -05 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/3] Make allmodconfig boot in qemu-arm64

Hi,

With this patch set I've been able to get a allmodconfig kernel to boot under qemu-system-aarch64.

The patch "config: provide a fragment to enable gdb for qemu" I found useful when trying to figure out how it fall over. So when I have to debug a kernel with gdb I just ran this:

$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -skj$(getconf
_NPROCESSORS_ONLN) O=obj-arm64-next-20181213 allmodconfig
kvm_guest.config qemu-gdb.config
$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -skj$(getconf
_NPROCESSORS_ONLN) O=obj-arm64-next-20181213 Image

Before we do the same job on other architectures we wanted to reach out and ask to see if this seams a reasonable way forward ?

The end goal would be to be able to run test suites on a allmodconfig kernel. We may end up with another fragment that turn off/on a lot of debug options and selftests during boot up since that may cause issues for other test suites like kseftest, LTP and so on.

Cheers,
Anders

Anders Roxell (3):
config: provide a fragment to enable gdb for qemu lib/ubsan: default UBSAN_ALIGNMENT to not set
arm64: add a new config option KTEST_RUNNABLE

 arch/arm64/Kconfig             |  8 ++++++++
 drivers/tty/hvc/Kconfig        |  1 +
 init/Kconfig                   |  1 +
 kernel/configs/qemu-gdb.config |  7 +++++++
 lib/Kconfig.ubsan              | 14 +++++++++-----
 5 files changed, 26 insertions(+), 5 deletions(-)
 create mode 100644 kernel/configs/qemu-gdb.config
Signature · 1 line
2.19.2