Re: [Qemu-devel] [PATCH 03/12] spapr_pci: Eliminate class callbacks

2016-02-28 Thread Alexey Kardashevskiy
On 02/29/2016 12:43 PM, Alexey Kardashevskiy wrote: On 02/26/2016 10:31 PM, David Gibson wrote: 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 base

Re: [Qemu-devel] [PATCH 03/12] spapr_pci: Eliminate class callbacks

2016-02-28 Thread Alexey Kardashevskiy
On 02/26/2016 10:31 PM, David Gibson wrote: 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 no

[Qemu-devel] [PATCH 03/12] spapr_pci: Eliminate class callbacks

2016-02-26 Thread David Gibson
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 t