diff options
author | Greg Kurz <groug@kaod.org> | 2019-02-15 12:39:48 +0100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-02-18 10:14:37 +1100 |
commit | 0e5c7fad9cdc5d431796f899b6a0e860ec93b611 (patch) | |
tree | 8ba6e6e7c133305861bae67d933dd62cfde1e73d /include | |
parent | 3a0d802c170c74807c1957f076b555daad867a1f (diff) | |
download | qemu-0e5c7fad9cdc5d431796f899b6a0e860ec93b611.zip qemu-0e5c7fad9cdc5d431796f899b6a0e860ec93b611.tar.gz qemu-0e5c7fad9cdc5d431796f899b6a0e860ec93b611.tar.bz2 |
xics: Explicitely call KVM ICP methods from the common code
The pre_save(), post_load() and synchronize_state() methods of the
ICPStateClass type are really KVM only things. Make that obvious
by dropping the indirections and directly calling the KVM functions
instead.
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <155023078871.1011724.3083923389814185598.stgit@bahia.lan>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/ppc/xics.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/hw/ppc/xics.h b/include/hw/ppc/xics.h index fad786e..3236cce 100644 --- a/include/hw/ppc/xics.h +++ b/include/hw/ppc/xics.h @@ -66,10 +66,6 @@ struct ICPStateClass { DeviceRealize parent_realize; DeviceReset parent_reset; - - void (*pre_save)(ICPState *icp); - int (*post_load)(ICPState *icp, int version_id); - void (*synchronize_state)(ICPState *icp); }; struct ICPState { @@ -203,4 +199,9 @@ void icp_resend(ICPState *ss); Object *icp_create(Object *cpu, const char *type, XICSFabric *xi, Error **errp); +/* KVM */ +void icp_get_kvm_state(ICPState *icp); +int icp_set_kvm_state(ICPState *icp); +void icp_synchronize_state(ICPState *icp); + #endif /* XICS_H */ |