From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAexP-0000TC-WE for qemu-devel@nongnu.org; Mon, 12 Jan 2015 08:23:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YAexL-00036W-Uy for qemu-devel@nongnu.org; Mon, 12 Jan 2015 08:22:59 -0500 Received: from mail-wi0-f182.google.com ([209.85.212.182]:37452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAexL-00036F-PB for qemu-devel@nongnu.org; Mon, 12 Jan 2015 08:22:55 -0500 Received: by mail-wi0-f182.google.com with SMTP id h11so14545135wiw.3 for ; Mon, 12 Jan 2015 05:22:55 -0800 (PST) From: Baptiste Reynal Date: Mon, 12 Jan 2015 14:21:39 +0100 Message-Id: <1421068903-8981-1-git-send-email-b.reynal@virtualopensystems.com> Subject: [Qemu-devel] [RFC PATCH 0/4] VFIO platform: Use device properties API List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, kvmarm@lists.cs.columbia.edu Cc: tech@virtualopensystems.com, Baptiste Reynal , eric.auger@linaro.org 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 wheter a property may change between the host and the guest. Currently, interrupt numbers and registers change, other information are 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 v2 0/3] VFIO support for AMBA devices. 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 | 33 +++++++++++ include/hw/vfio/vfio-common.h | 2 + linux-headers/linux/vfio.h | 25 ++++++++ 4 files changed, 175 insertions(+), 19 deletions(-) -- 2.2.1