On Wed, 2015-11-11 at 18:34 +0800, Cao jin wrote: > From: Chen Fan <chen.fan.f...@cn.fujitsu.com> > > Particularly, For vfio devices, Once need to recovery devices > by bus reset such as AER, we always need to reset the host bus > to recovery the devices under the bus, so we need to add pci device > callbacks to specify to do host bus reset. > > Signed-off-by: Chen Fan <chen.fan.f...@cn.fujitsu.com> > --- > hw/pci/pci.c | 18 ++++++++++++++++++ > hw/pci/pci_bridge.c | 9 +++++++++ > hw/vfio/pci.c | 26 ++++++++++++++++++++++++++ > hw/vfio/pci.h | 2 ++ > include/hw/pci/pci.h | 7 +++++++ > 5 files changed, 62 insertions(+) ... > diff --git a/hw/vfio/pci.h b/hw/vfio/pci.h > index b385f07..1b89b83 100644 > --- a/hw/vfio/pci.h > +++ b/hw/vfio/pci.h > @@ -144,6 +144,8 @@ typedef struct VFIOPCIDevice { > bool no_kvm_msix; > > NotifierWithReturn hotplug_notifier; > + bool aer_reset; > + bool single_depend_dev; > } VFIOPCIDevice;
Add these to with the rest of the bools above hotplug_notifier so the structure isn't larger than it needs to be.