From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLa3y-0005Vm-TT for qemu-devel@nongnu.org; Wed, 11 Feb 2015 11:22:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLa3t-0002mm-UH for qemu-devel@nongnu.org; Wed, 11 Feb 2015 11:22:54 -0500 Received: from mail-wi0-f171.google.com ([209.85.212.171]:50504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLa3t-0002mO-Hm for qemu-devel@nongnu.org; Wed, 11 Feb 2015 11:22:49 -0500 Received: by mail-wi0-f171.google.com with SMTP id hi2so13385602wib.4 for ; Wed, 11 Feb 2015 08:22:48 -0800 (PST) From: Baptiste Reynal Date: Wed, 11 Feb 2015 17:22:00 +0100 Message-Id: <1423671724-13167-1-git-send-email-b.reynal@virtualopensystems.com> Subject: [Qemu-devel] [RFC PATCH v3 0/3] VFIO support for AMBA devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kvmarm@lists.cs.columbia.edu, qemu-devel@nongnu.org Cc: tech@virtualopensystems.com, Baptiste Reynal The following series add VFIO support for AMBA devices. It introduces multiple compatible string support to deal with arm,primecell compatible string. The VFIOPlatformDevice now checks for this string and performs amba specific operations if it is present (change path of the device, add clock in the fd). This patch applies on top of http://git.linaro.org/people/eric.auger/qemu.git on branch vfio_integ_v9. The series has been tested using PL330 device. The test performed relies on a special guest kernel, which can be found here http://github.com/virtualopensystems/linux-kvm-arm.git on branch vfio-platform-v6-guide, with CONFIG_KVM, CONFIG_ARM_SMMU, CONFIG_PL330_DMA and CONFIG_VOSYS_DMATEST enabled. Run qemu using this command: ./qemu-system-arm -M virt -m 512M -enable-kvm \ -device vfio-pl330,host="2c0a0000.dma",id=dma,x-irqfd=false,x-forward=false \ -append "earlyprintk console=ttyAMA0" \ -kernel zImage -nographic Then run DMA test: mount -t debugfs none /sys/kernel/debug echo 1 > /sys/kernel/debug/vosys_dmatest/start Baptiste Reynal (3): hw/vfio/sysbus-fdt: helper routines to create fdt nodes hw/vfio: amba device support hw/vfio: add pl330 device support hw/arm/sysbus-fdt.c | 210 ++++++++++++++++++++++++++++++++++-------- hw/vfio/Makefile.objs | 1 + hw/vfio/pl330.c | 41 +++++++++ hw/vfio/platform.c | 20 +++- include/hw/vfio/vfio-common.h | 1 + include/hw/vfio/vfio-pl330.h | 26 ++++++ 6 files changed, 258 insertions(+), 41 deletions(-) create mode 100644 hw/vfio/pl330.c create mode 100644 include/hw/vfio/vfio-pl330.h -- 2.3.0