This series adds a feature to the ASPEED machine that allows the guest to cause itself to exit. It was tested with romulus-bmc and palmetto-bmc with a Linux kernel as the guest.
To test: cd linux $ export ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- $ make aspeed_g4_defconfig $ ./scripts/config -e CONFIG_POWER_RESET_SYSCON_POWEROFF -e CONFIG_POWER_RESET $ make -j$(nproc) $ qemu-system-arm -M palmetto-bmc -nographic \ -kernel arch/arm/boot/zImage \ -dtb arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dtb \ -initrd ~/buildroot-arm.cpio.xz Joel Stanley (2): aspeed: Add syscon-poweroff to guest device tree aspeed/scu: Implement power off register hw/arm/aspeed.c | 33 +++++++++++++++++++++++++++++++++ hw/misc/aspeed_scu.c | 5 +++++ 2 files changed, 38 insertions(+) -- 2.19.1