spapr: Implement ibm,suspend-me
commit93eac7b8f44738f7d2f4ba4460d67b04af5b0b99
authorNicholas Piggin <npiggin@gmail.com>
Mon, 22 Jul 2019 06:17:52 +0000 (22 16:17 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 21 Aug 2019 07:17:39 +0000 (21 17:17 +1000)
tree9044565ac3d6082ac008cafa39761d394e9242d6
parentc508bd12f65e14f82eb62e462bcb64898d8806a6
spapr: Implement ibm,suspend-me

This has been useful to modify and test the Linux pseries suspend
code but it requires modification to the guest to call it (due to
being gated by other unimplemented features). It is not otherwise
used by Linux yet, but work is slowly progressing there.

This allows a (lightly modified) guest kernel to suspend with
`echo mem > /sys/power/state` and be resumed with system_wakeup
monitor command.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Message-Id: <20190722061752.22114-2-npiggin@gmail.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c
hw/ppc/spapr_rtas.c
include/hw/ppc/spapr.h