[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v13 10/13] pci: add pci device pre-post reset ca
From: |
Alex Williamson |
Subject: |
Re: [Qemu-devel] [PATCH v13 10/13] pci: add pci device pre-post reset callbacks for host bus reset |
Date: |
Wed, 11 Nov 2015 13:58:47 -0700 |
On Wed, 2015-11-11 at 18:34 +0800, Cao jin wrote:
> From: Chen Fan <address@hidden>
>
> 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 <address@hidden>
> ---
> 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.
- Re: [Qemu-devel] [PATCH v13 03/13] pcie: modify the capability size assert, (continued)
- [Qemu-devel] [PATCH v13 04/13] vfio: make the 4 bytes aligned for capability size, Cao jin, 2015/11/11
- [Qemu-devel] [PATCH v13 06/13] aer: impove pcie_aer_init to support vfio device, Cao jin, 2015/11/11
- [Qemu-devel] [PATCH v13 07/13] vfio: add aer support for vfio device, Cao jin, 2015/11/11
- [Qemu-devel] [PATCH v13 05/13] vfio: add pcie extanded capability support, Cao jin, 2015/11/11
- [Qemu-devel] [PATCH v13 10/13] pci: add pci device pre-post reset callbacks for host bus reset, Cao jin, 2015/11/11
- [Qemu-devel] [PATCH v13 09/13] add check reset mechanism when hotplug vfio device, Cao jin, 2015/11/11
- Re: [Qemu-devel] [PATCH v13 09/13] add check reset mechanism when hotplug vfio device, Michael S. Tsirkin, 2015/11/12
- Re: [Qemu-devel] [PATCH v13 09/13] add check reset mechanism when hotplug vfio device, Cao jin, 2015/11/12
- Re: [Qemu-devel] [PATCH v13 09/13] add check reset mechanism when hotplug vfio device, Alex Williamson, 2015/11/13
- Re: [Qemu-devel] [PATCH v13 09/13] add check reset mechanism when hotplug vfio device, Chen Fan, 2015/11/16
- Re: [Qemu-devel] [PATCH v13 09/13] add check reset mechanism when hotplug vfio device, Alex Williamson, 2015/11/16
- Re: [Qemu-devel] [PATCH v13 09/13] add check reset mechanism when hotplug vfio device, Chen Fan, 2015/11/16
[Qemu-devel] [PATCH v13 08/13] vfio: add check host bus reset is support or not, Cao jin, 2015/11/11