xics: Handle KVM ICP reset from the common code
commitd82f397183b41f25e5a2e41c4af887f102de60ef
authorGreg Kurz <groug@kaod.org>
Fri, 15 Feb 2019 11:39:54 +0000 (15 12:39 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sun, 17 Feb 2019 23:29:55 +0000 (18 10:29 +1100)
treebdcaeee8f18240b7cafd3e269922e0ae3f8ab25d
parent0e5c7fad9cdc5d431796f899b6a0e860ec93b611
xics: Handle KVM ICP reset from the common code

The KVM ICP reset handler simply writes the ICP state to KVM. This
doesn't need the overkill parent_reset logic we have today. Call
icp_set_kvm_state() from the base ICP reset function instead.

Since there are no other users for ICPStateClass::parent_reset, and
it isn't currently expected to change, drop it as well.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <155023079461.1011724.12644984391500635645.stgit@bahia.lan>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/xics.c
hw/intc/xics_kvm.c
include/hw/ppc/xics.h