On Thu, 5 Sep 2019 at 12:10, Shlomo Pongratz <shlomopongr...@gmail.com> wrote: > Thank you, > I've added the GONFIG_GPIO_PL061 (isn't it emulated on realview only?)
No, the 'virt' board provides a PL061, largely just for this kind of power control purpose. I've just remembered though that the PL061 is for power-control in the other direction -- it allows you to shut down QEMU from outside the VM by providing effectively an emulated power button. The mechanism used for the VM to shut itself down should be the PSCI power-control APIs. Check you have CONFIG_ARM_PSCI_FW in your kernel config. > and CONFIG_KEYBOARD_GPIO and also added The CONFIG_POWER_RESET_GPIO. > But the QEMU still doesn't exit after halt -f. > Is there a Linux config file that is known to be able to make QEMU > exit that I and use as starting point? Yes, try the arm64 defconfig. thanks -- PMM