spapr_pci: Eliminate class callbacks
commitfbb4e983415dc5a15e167dd00bc4564c57121915
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 29 Feb 2016 06:45:05 +0000 (29 17:45 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 15 Mar 2016 22:55:10 +0000 (16 09:55 +1100)
treeca24c1b4c1e34d3bd707c886c3e9b6573a4a4362
parent76a9e9f6803f097d8e37afae239c9638ee95dd39
spapr_pci: Eliminate class callbacks

The EEH operations in the spapr-vfio-pci-host-bridge no longer rely on the
special groupid field in sPAPRPHBVFIOState.  So we can simplify, removing
the class specific callbacks with direct calls based on a simple
spapr_phb_eeh_enabled() helper.  For now we implement that in terms of
a boolean in the class, but we'll continue to clean that up later.

On its own this is a rather strange way of doing things, but it's a useful
intermediate step to further cleanups.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
hw/ppc/spapr_pci.c
hw/ppc/spapr_pci_vfio.c
include/hw/pci-host/spapr.h