qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/5] Retrieving zPCI specific info from QEMU
@ 2019-05-10 14:38 Pierre Morel
  2019-05-10 14:38 ` [Qemu-devel] [PATCH 1/5] vfio: vfio_iommu_type1: linux header place holder Pierre Morel
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Pierre Morel @ 2019-05-10 14:38 UTC (permalink / raw)
  To: cohuck
  Cc: pasic, mst, qemu-s390x, david, walling, qemu-devel, borntraeger,
	alex.williamson, pbonzini, rth

This patch implement the QEMU part to retrieve ZPCI specific
information from the host.
The Linux part has been posted on a separate patch on the LKML.

Subject: [PATCH 0/4] Retrieving zPCI specific info with VFIO
Message-Id: <1557476555-20256-1-git-send-email-pmorel@linux.ibm.com>


We use the PCI VFIO interface to retrieve ZPCI specific information
from the host.

The Linux patch enhance the VFIO_IOMMU_GET_INFO ioctl with
a new Z specific capability and we use it to access the
information stored in the zPCI function.

The retrieval is done only once per function and function group
during the plugging of the device.
The guest's requests are filled with shadow values we keep for
the duration of the device remains plugged.

Still there are some values we need to virtualize, like
the UID and FID of the zPCI function, and we currently
only allow the refresh bit for the zPCI group flags.

Note that we export the CLP specific definitions in a dedicated
file for clarity.


Pierre Morel (5):
  vfio: vfio_iommu_type1: linux header place holder
  s390: PCI: Creation a header dedicated to PCI CLP
  s390: vfio_pci: Use a PCI Group structure
  s390: vfio_pci: Use a PCI Function structure
  s390: vfio_pci: Get zPCI function info from host

 hw/s390x/s390-pci-bus.c    | 142 ++++++++++++++++++++++++++++--
 hw/s390x/s390-pci-bus.h    |  13 ++-
 hw/s390x/s390-pci-clp.h    | 211 +++++++++++++++++++++++++++++++++++++++++++++
 hw/s390x/s390-pci-inst.c   |  28 +++---
 hw/s390x/s390-pci-inst.h   | 196 -----------------------------------------
 linux-headers/linux/vfio.h |  16 +++-
 6 files changed, 386 insertions(+), 220 deletions(-)
 create mode 100644 hw/s390x/s390-pci-clp.h

-- 
2.7.4



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

end of thread, other threads:[~2019-05-16  8:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-10 14:38 [Qemu-devel] [PATCH 0/5] Retrieving zPCI specific info from QEMU Pierre Morel
2019-05-10 14:38 ` [Qemu-devel] [PATCH 1/5] vfio: vfio_iommu_type1: linux header place holder Pierre Morel
2019-05-12 18:22   ` Michael S. Tsirkin
2019-05-16  8:51     ` Pierre Morel
2019-05-10 14:38 ` [Qemu-devel] [PATCH 2/5] s390: PCI: Creation a header dedicated to PCI CLP Pierre Morel
2019-05-10 14:38 ` [Qemu-devel] [PATCH 3/5] s390: vfio_pci: Use a PCI Group structure Pierre Morel
2019-05-14 11:49   ` Cornelia Huck
2019-05-16  8:55     ` Pierre Morel
2019-05-10 14:38 ` [Qemu-devel] [PATCH 4/5] s390: vfio_pci: Use a PCI Function structure Pierre Morel
2019-05-10 14:38 ` [Qemu-devel] [PATCH 5/5] s390: vfio_pci: Get zPCI function info from host Pierre Morel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).