All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v4 00/17] Convert VFIO-PCI to realize
@ 2016-10-03 12:41 Eric Auger
  2016-10-03 12:41 ` [Qemu-devel] [PATCH v4 01/17] vfio/pci: Use local error object in vfio_initfn Eric Auger
                   ` (17 more replies)
  0 siblings, 18 replies; 34+ messages in thread
From: Eric Auger @ 2016-10-03 12:41 UTC (permalink / raw)
  To: eric.auger, eric.auger.pro, qemu-devel, alex.williamson, armbru

This series converts VFIO-PCI to realize. It also aims at improving
the error reporting in case of QMP hot-plug.

Before the series, a device_add failure would have reported:
{"error": {"class": "GenericError", "desc": "Device initialization
failed"}}.

Now the actual error cause is reported.

A side effect of this series is the cleanup of the error handling
in vfio-platform.

Git Information:
https://github.com/eauger/qemu/tree/v2.7.0_vfio_realize_v4

History:
v3 -> v4:
- added vfio: Pass an Error object to vfio_connect_container

v2 -> v3:
- Addressed Markus' comments :
  - don't use local error object if not necessary
  - fix some error handling: see individual patches
  - use error objects also on vfio platform realize path although
    hot-plug is not allowed, but that's cleaner I think.
  - bug fix in vfio platform

v1 -> v2:
- Error object is cascaded downto vfio_intx_enable, vfio_add_capabilities
  vfio_pci_igd_opregion_init, vfio_get_group, vfio_get_device
- Actual migration to realize happens at a later stage following Markus'
  guidance
- special handling of the case where the end-user omits the host property
- error_setg_errno now uses positive errno
- more detailed commit message
- fix "cannot enable AER cannot" functional change


Eric Auger (17):
  vfio/pci: Use local error object in vfio_initfn
  vfio/pci: Pass an error object to vfio_populate_vga
  vfio/pci: Pass an error object to vfio_populate_device
  vfio/pci: Pass an error object to vfio_msix_early_setup
  vfio/pci: Pass an error object to vfio_intx_enable
  vfio/pci: Pass an error object to vfio_add_capabilities
  vfio/pci: Pass an error object to vfio_pci_igd_opregion_init
  vfio: Pass an Error object to vfio_connect_container
  vfio: Pass an error object to vfio_get_group
  vfio: Pass an error object to vfio_get_device
  vfio/platform: Pass an error object to vfio_populate_device
  vfio/platform: fix a wrong returned value in vfio_populate_device
  vfio/platform: Pass an error object to vfio_base_device_init
  vfio/pci: Conversion to realize
  vfio/pci: Remove vfio_msix_early_setup returned value
  vfio/pci: Remove vfio_populate_device returned value
  vfio/pci: Handle host oversight

 hw/vfio/common.c              |  68 ++++++-----
 hw/vfio/pci-quirks.c          |  14 ++-
 hw/vfio/pci.c                 | 271 +++++++++++++++++++++++-------------------
 hw/vfio/pci.h                 |   5 +-
 hw/vfio/platform.c            |  65 +++++-----
 hw/vfio/trace-events          |   2 +-
 include/hw/vfio/vfio-common.h |   7 +-
 7 files changed, 244 insertions(+), 188 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2016-10-07  7:15 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-03 12:41 [Qemu-devel] [PATCH v4 00/17] Convert VFIO-PCI to realize Eric Auger
2016-10-03 12:41 ` [Qemu-devel] [PATCH v4 01/17] vfio/pci: Use local error object in vfio_initfn Eric Auger
2016-10-03 12:41 ` [Qemu-devel] [PATCH v4 02/17] vfio/pci: Pass an error object to vfio_populate_vga Eric Auger
2016-10-04 11:43   ` Markus Armbruster
2016-10-03 12:41 ` [Qemu-devel] [PATCH v4 03/17] vfio/pci: Pass an error object to vfio_populate_device Eric Auger
2016-10-03 12:41 ` [Qemu-devel] [PATCH v4 04/17] vfio/pci: Pass an error object to vfio_msix_early_setup Eric Auger
2016-10-03 12:41 ` [Qemu-devel] [PATCH v4 05/17] vfio/pci: Pass an error object to vfio_intx_enable Eric Auger
2016-10-03 12:41 ` [Qemu-devel] [PATCH v4 06/17] vfio/pci: Pass an error object to vfio_add_capabilities Eric Auger
2016-10-03 12:41 ` [Qemu-devel] [PATCH v4 07/17] vfio/pci: Pass an error object to vfio_pci_igd_opregion_init Eric Auger
2016-10-04 11:56   ` Markus Armbruster
2016-10-03 12:41 ` [Qemu-devel] [PATCH v4 08/17] vfio: Pass an Error object to vfio_connect_container Eric Auger
2016-10-04 12:03   ` Markus Armbruster
2016-10-06 16:11     ` Auger Eric
2016-10-03 12:41 ` [Qemu-devel] [PATCH v4 09/17] vfio: Pass an error object to vfio_get_group Eric Auger
2016-10-03 12:41 ` [Qemu-devel] [PATCH v4 10/17] vfio: Pass an error object to vfio_get_device Eric Auger
2016-10-03 12:41 ` [Qemu-devel] [PATCH v4 11/17] vfio/platform: Pass an error object to vfio_populate_device Eric Auger
2016-10-03 12:41 ` [Qemu-devel] [PATCH v4 12/17] vfio/platform: fix a wrong returned value in vfio_populate_device Eric Auger
2016-10-04 12:48   ` Markus Armbruster
2016-10-06 16:12     ` Auger Eric
2016-10-03 12:41 ` [Qemu-devel] [PATCH v4 13/17] vfio/platform: Pass an error object to vfio_base_device_init Eric Auger
2016-10-04 12:53   ` Markus Armbruster
2016-10-03 12:41 ` [Qemu-devel] [PATCH v4 14/17] vfio/pci: Conversion to realize Eric Auger
2016-10-04 12:58   ` Markus Armbruster
2016-10-06 16:12     ` Auger Eric
2016-10-03 12:41 ` [Qemu-devel] [PATCH v4 15/17] vfio/pci: Remove vfio_msix_early_setup returned value Eric Auger
2016-10-04 13:05   ` Markus Armbruster
2016-10-06 16:09     ` Auger Eric
2016-10-07  7:15       ` Markus Armbruster
2016-10-03 12:41 ` [Qemu-devel] [PATCH v4 16/17] vfio/pci: Remove vfio_populate_device " Eric Auger
2016-10-04 13:06   ` Markus Armbruster
2016-10-03 12:41 ` [Qemu-devel] [PATCH v4 17/17] vfio/pci: Handle host oversight Eric Auger
2016-10-04 13:20 ` [Qemu-devel] [PATCH v4 00/17] Convert VFIO-PCI to realize Markus Armbruster
2016-10-05 18:42   ` Alex Williamson
2016-10-06 12:50   ` Auger Eric

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.