spapr/xive: add state synchronization with KVM
commit7bfc759c02b8d19fd76d70d138deea0025f6f461
authorCédric Le Goater <clg@kaod.org>
Mon, 13 May 2019 08:42:35 +0000 (13 10:42 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 29 May 2019 01:39:46 +0000 (29 11:39 +1000)
tree1b033c7f6a49023780a5390f7cfaa885a854f95b
parent0c575703e487b6e36d226b67e0c8d08c004ce998
spapr/xive: add state synchronization with KVM

This extends the KVM XIVE device backend with 'synchronize_state'
methods used to retrieve the state from KVM. The HW state of the
sources, the KVM device and the thread interrupt contexts are
collected for the monitor usage and also migration.

These get operations rely on their KVM counterpart in the host kernel
which acts as a proxy for OPAL, the host firmware. The set operations
will be added for migration support later.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20190513084245.25755-5-clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/spapr_xive.c
hw/intc/spapr_xive_kvm.c
hw/intc/xive.c
include/hw/ppc/spapr_xive.h
include/hw/ppc/xive.h