Skip to content

RFC VFIO platform: Use device properties API

Baptiste Reynal qemu-devel 2 versions – New

Get series with b4
b4 am 1423672089-13464-1-git-send-email-b.reynal@virtualopensystems.com

Versions newest first · linked by author and title

  1. v2 RFC Latest4 patches 0 repliesNew
  2. v1 RFC4 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- various fixes
- code clarification (some comments added)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4linux-headers updatelinux-headers/linux/vfio.h+25 -00 replies
2/4hw/vfio/common.c : vfio_get_dev_propertyhw/vfio/common.c include/hw/vfio/vfio-common.h+34 -00 replies
3/4hw/arm/sysbus-fdt: vfio device property for interruptshw/arm/sysbus-fdt.c+17 -60 replies
4/4hw/arm/sysbus-fdt: arm, pl330 vfio device propertyhw/arm/sysbus-fdt.c+111 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Qemu-devel] [RFC PATCH v2 0/4] VFIO platform: Use device properties API

This RFC shows the implementation on QEMU side of the device properties interface presented in kernel patch series:
[RFC PATCH v3 0/3] vfio: platform: return device properties for a platform device from branch vfio-device-properties-v3 on the repository:
https://github.com/virtualopensystems/linux-kvm-arm.git

When a VFIO device is bound to the VM, properties are queried to the host to fill the device tree.

One issue here is whether a property may change between the host and the guest. Currently, interrupt numbers and registers change, other information is kept (including interrupt type and flags).

Regarding the clock, any primecell device requiring a clock is attached to apb-pclk.

DMA pl330 is used as an example. For this reason the last patch (3/3, arm,pl330 vfio device property) relies on the following patch series: [RFC PATCH v3 0/3] VFIO support for AMBA devices.

Changes since v1:
- various fixes
- code clarification (some comments added)

Baptiste Reynal (4):
linux-headers update
hw/vfio/common.c : vfio_get_dev_property hw/arm/sysbus-fdt: vfio device property for interrupts hw/arm/sysbus-fdt: arm,pl330 vfio device property

 hw/arm/sysbus-fdt.c           | 134 ++++++++++++++++++++++++++++++++++++++++--
 hw/vfio/common.c              |  32 ++++++++++
 include/hw/vfio/vfio-common.h |   2 +
 linux-headers/linux/vfio.h    |  25 ++++++++
 4 files changed, 187 insertions(+), 6 deletions(-)
Signature · 1 line
2.3.0