]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/ppc: Implement -dtb support for PowerNV
authorAditya Gupta <adityag@linux.ibm.com>
Tue, 20 Aug 2024 10:30:03 +0000 (16:00 +0530)
committerNicholas Piggin <npiggin@gmail.com>
Sun, 3 Nov 2024 23:14:09 +0000 (09:14 +1000)
commit889c5c4c7a32be298aa499a246dbfd0c5fea8a74
treef2250057fd0b2814f3b98fae2530a8d476593356
parent6fb6f3096a3c417c8fe1eaaa4e80b230d19ff93d
hw/ppc: Implement -dtb support for PowerNV

Currently any device tree passed with -dtb option in QEMU, was ignored
by the PowerNV code.

Read and pass the passed -dtb to the kernel, thus enabling easier
debugging with custom DTBs.

The existing behaviour when -dtb is 'not' passed, is preserved as-is.

But when a '-dtb' is passed, it completely overrides any dtb nodes or
changes QEMU might have done, such as '-append' arguments to the kernel
(which are mentioned in /chosen/bootargs in the dtb), hence add warning
when -dtb is being used

Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Aditya Gupta <adityag@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
hw/ppc/pnv.c