machine: Add wakeup method to MachineClass
commit4b5e06c9465ece90b48cb0b978c0b898ea46e133
authorNicholas Piggin <npiggin@gmail.com>
Mon, 22 Jul 2019 05:32:13 +0000 (22 15:32 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 21 Aug 2019 07:17:39 +0000 (21 17:17 +1000)
treeb5d00067a99a3ee23e849b8a8ff808f4b964f689
parentc5e760e0f2de9e6ba682c001c8cdd0b40c8b5731
machine: Add wakeup method to MachineClass

Waking from suspend is not logically a machine reset on all machines,
particularly in the paravirtualized case rather than hardware
emulated. The ppc spapr machine for example just invokes hypervisor
to suspend, and expects that call to return with the machine in the
same state (modulo some possible migration and reconfiguration
details).

Implement a machine ->wakeup method and use that if it exists.

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