On 04/22/2017 12:09 PM, Stafford Horne wrote:
I discussed a bit on #qemu and Alexander Graf suggested to properly define shutdown semantics for openrisc. Some examples were shown from ppc, s390 and arm.
Yes, properly defining this in the spec goes a long way toward fixing the underlying problem.
It's probably worth thinking about a wait-state condition as well, so that qemu can avoid staying pegged at 100% host cpu for an idle guest cpu.
ppc - platform http://git.qemu.org/?p=qemu.git;a=blob;f=hw/ppc/e500.c;hb=HEAD#l936 Registers hardware device mpc8xxx_gpio which handles shutdown via gpio
That's one possibility. Another is to define an SPR. r~