Re: [RFC PATCH v5 0/3] vfio: platform: return device properties for a platform device

2015-10-05 Thread Baptiste Reynal
On Mon, Oct 5, 2015 at 11:53 AM, Christoffer Dall wrote: > [why are you top-posting?] > > On Mon, Oct 05, 2015 at 11:42:38AM +0200, Baptiste Reynal wrote: >> In this patch series we want to wrap an already available kernel >> interface to expose a device property to userspac

Re: [RFC PATCH v5 0/3] vfio: platform: return device properties for a platform device

2015-10-05 Thread Baptiste Reynal
In this patch series we want to wrap an already available kernel interface to expose a device property to userspace, in order to keep the code lighter on the userspace. We need those properties in VFIO as VFIO grants the possibility to develop userspace drivers. The sysfs doesn't seems to be ready

[RFC PATCH v5 3/3] vfio: platform: return device properties as arrays of unsigned integers

2015-09-30 Thread Baptiste Reynal
From: Antonios Motakis Certain properties of a device are accessible as an array of unsigned integers, either u64, u32, u16, or u8. Let the VFIO user query this type of device properties. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal --- v4 -> v5: - fix return error w

[RFC PATCH v5 2/3] vfio: platform: access device property as a list of strings

2015-09-30 Thread Baptiste Reynal
From: Antonios Motakis Certain device properties (e.g. the device node name, the compatible string), are available as a list of strings (separated by the null terminating character). Let the VFIO user query this type of properties. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal

[RFC PATCH v5 1/3] vfio: platform: add device properties skeleton and user API

2015-09-30 Thread Baptiste Reynal
via the introduced ioctl VFIO_DEVICE_GET_DEV_PROPERTY. The user needs to know the name and the data type of the property he is accessing. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal --- v4 -> v5: - add a limit size to namesz (128) - remove flags propagation - replace E2

[RFC PATCH v5 0/3] vfio: platform: return device properties for a platform device

2015-09-30 Thread Baptiste Reynal
This RFC's intention is to show what an interface to access device properties for the VFIO platform driver can look like. These properties can be retrieved from the device tree node describing the device, or ACPI properties. If a device property corresponding to a platform device bound to VFIO PLA

Re: [RFC PATCH v4 3/3] vfio: platform: return device properties as arrays of unsigned integers

2015-09-09 Thread Baptiste Reynal
On Wed, Sep 9, 2015 at 10:48 PM, Alex Williamson wrote: > On Wed, 2015-09-09 at 11:17 +0200, Baptiste Reynal wrote: > > From: Antonios Motakis > > > > Certain properties of a device are accessible as an array of unsigned > > integers, either u64, u32, u16, or u8. L

Re: [RFC PATCH v4 2/3] vfio: platform: access device property as a list of strings

2015-09-09 Thread Baptiste Reynal
On Wed, Sep 9, 2015 at 10:48 PM, Alex Williamson wrote: > On Wed, 2015-09-09 at 11:17 +0200, Baptiste Reynal wrote: > > From: Antonios Motakis > > > > Certain device properties (e.g. the device node name, the compatible > > string), are available as a list of str

Re: [RFC PATCH v4 1/3] vfio: platform: add device properties skeleton and user API

2015-09-09 Thread Baptiste Reynal
On Wed, Sep 9, 2015 at 10:48 PM, Alex Williamson wrote: > On Wed, 2015-09-09 at 11:17 +0200, Baptiste Reynal wrote: > > From: Antonios Motakis > > > > This patch introduces an API that allows to return device properties (OF > > or ACPI) of a device bound to the vfi

[RFC PATCH v4 1/3] vfio: platform: add device properties skeleton and user API

2015-09-09 Thread Baptiste Reynal
via the introduced ioctl VFIO_DEVICE_GET_DEV_PROPERTY. The user needs to know the name and the data type of the property he is accessing. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal --- v3 -> v4: - added flags placeholder in vfio_dev_properties - ioctl returns -E2BIG if

[RFC PATCH v4 0/3] vfio: platform: return device properties for a platform device

2015-09-09 Thread Baptiste Reynal
This RFC's intention is to show what an interface to access device properties for the VFIO platform driver can look like. These properties can be retrieved from the device tree node describing the device, or ACPI properties. If a device property corresponding to a platform device bound to VFIO PL

[RFC PATCH v4 2/3] vfio: platform: access device property as a list of strings

2015-09-09 Thread Baptiste Reynal
From: Antonios Motakis Certain device properties (e.g. the device node name, the compatible string), are available as a list of strings (separated by the null terminating character). Let the VFIO user query this type of properties. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal

[RFC PATCH v4 3/3] vfio: platform: return device properties as arrays of unsigned integers

2015-09-09 Thread Baptiste Reynal
From: Antonios Motakis Certain properties of a device are accessible as an array of unsigned integers, either u64, u32, u16, or u8. Let the VFIO user query this type of device properties. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal --- drivers/vfio/platform/properties.c

Re: [RFC PATCH v3 0/3] vfio: platform: return device properties for a platform device

2015-09-03 Thread Baptiste Reynal
On Wed, Sep 2, 2015 at 6:52 PM, Alex Williamson wrote: > On Wed, 2015-09-02 at 11:49 +0200, Baptiste Reynal wrote: >> On Wed, Sep 2, 2015 at 11:21 AM, Christoffer Dall >> wrote: >> > On Wed, Sep 02, 2015 at 09:21:26AM +0200, Baptiste Reynal wrote: >> >

Re: [RFC PATCH v3 0/3] vfio: platform: return device properties for a platform device

2015-09-02 Thread Baptiste Reynal
On Wed, Sep 2, 2015 at 12:32 PM, Christoffer Dall wrote: > On Wed, Sep 02, 2015 at 11:49:12AM +0200, Baptiste Reynal wrote: >> On Wed, Sep 2, 2015 at 11:21 AM, Christoffer Dall >> wrote: >> > On Wed, Sep 02, 2015 at 09:21:26AM +0200, Baptiste Reynal wrote: >> >

Re: [RFC PATCH v3 0/3] vfio: platform: return device properties for a platform device

2015-09-02 Thread Baptiste Reynal
On Wed, Sep 2, 2015 at 11:21 AM, Christoffer Dall wrote: > On Wed, Sep 02, 2015 at 09:21:26AM +0200, Baptiste Reynal wrote: >> On Tue, Sep 1, 2015 at 5:52 PM, Christoffer Dall >> wrote: >> > On Tue, Sep 01, 2015 at 05:32:21PM +0200, Baptiste Reynal wrote: >> &

Re: [RFC PATCH v3 0/3] vfio: platform: return device properties for a platform device

2015-09-02 Thread Baptiste Reynal
On Tue, Sep 1, 2015 at 5:52 PM, Christoffer Dall wrote: > On Tue, Sep 01, 2015 at 05:32:21PM +0200, Baptiste Reynal wrote: >> Hi everyone, >> >> The usefullness of this patch has already been discussed during the >> first releases >> (http://lists.linuxfoundatio

Re: [RFC PATCH v3 0/3] vfio: platform: return device properties for a platform device

2015-09-01 Thread Baptiste Reynal
Hi everyone, The usefullness of this patch has already been discussed during the first releases (http://lists.linuxfoundation.org/pipermail/iommu/2014-August/009586.html). I underline the fact that it avoids implementing the logic on the userspace program, as VFIO can be used for many usage (user

Re: [PATCH v15 00/10] KVM platform device passthrough

2015-05-11 Thread Baptiste Reynal
Hi Eric, I rebased amba patches on this serie. Everything is working fine with the PL330 device. Regards, Baptiste On Wed, May 6, 2015 at 8:37 AM, Eric Auger wrote: > Dear All, > > Please ignore the previous void message. For unknown reason the reply > systematically ignores the content of the

Re: [PATCH v11 0/4] machvirt dynamic sysbus device instantiation

2015-04-24 Thread Baptiste Reynal
pendency and overall acceptance is not guaranteed. > > Best Regards > > Eric > > > On 04/23/2015 05:05 PM, Baptiste Reynal wrote: >> Hi Eric, >> >> Is there anything still blocking this patch ? Can I get the status ? >> >> Thanks, >> Baptiste >

Re: [PATCH v11 0/4] machvirt dynamic sysbus device instantiation

2015-04-23 Thread Baptiste Reynal
Hi Eric, Is there anything still blocking this patch ? Can I get the status ? Thanks, Baptiste On Wed, Mar 4, 2015 at 5:18 PM, Eric Auger wrote: > This patch series enables machvirt to dynamically instantiate sysbus > devices from command line (using -device option). > > All those sysbus devic

Re: [PATCH v14 19/20] vfio: initialize the virqfd workqueue in VFIO generic code

2015-03-18 Thread Baptiste Reynal
-03-02 at 17:59 +0100, Baptiste Reynal wrote: >> > From: Antonios Motakis >> > >> > Now we have finally completely decoupled virqfd from VFIO_PCI. We can >> > initialize it from the VFIO generic code, in order to safely use it from >> > multiple independe

Re: [PATCH v14 00/20] VFIO support for platform devices

2015-03-11 Thread Baptiste Reynal
ms ready for upstream, thanks everyone. Best regards, Baptiste On Wed, Mar 11, 2015 at 4:52 PM, Eric Auger wrote: > On 03/11/2015 11:08 AM, Baptiste Reynal wrote: >> Thanks Eric and Alex for your reviews. >> >> I can confirm we can drop the dependency, as I re-tested with

Re: [PATCH v14 00/20] VFIO support for platform devices

2015-03-11 Thread Baptiste Reynal
Thanks Eric and Alex for your reviews. I can confirm we can drop the dependency, as I re-tested without it. Do you need a fix for the headers issue underlined by Eric ? Best regards, Baptiste On Wed, Mar 11, 2015 at 9:40 AM, Eric Auger wrote: > On 03/10/2015 07:04 PM, Alex Williamson wrote: >>

Re: [PATCH v5 0/4] vfio: type1: support for ARM SMMUS with VFIO_IOMMU_TYPE1

2015-03-06 Thread Baptiste Reynal
requirement dropped when the flag has been reversed). Best regards, Baptiste On Fri, Mar 6, 2015 at 2:17 PM, Eric Auger wrote: > On 03/06/2015 12:27 PM, Baptiste Reynal wrote: >> Hi everyone, >> >> Indeed, the NOEXEC flag is needed for our tests and VFIO should work >> withou

Re: [PATCH v5 0/4] vfio: type1: support for ARM SMMUS with VFIO_IOMMU_TYPE1

2015-03-06 Thread Baptiste Reynal
Hi everyone, Indeed, the NOEXEC flag is needed for our tests and VFIO should work without it for some other devices (including xgmac). I think it is reasonable to drop this patch serie for now. Still we have the IOMMU_CACHE issue. To answer Will, the SMMU page tables are installed at stage-2. Cur

Re: [PATCH v5 0/4] vfio: type1: support for ARM SMMUS with VFIO_IOMMU_TYPE1

2015-03-05 Thread Baptiste Reynal
On Wed, Mar 4, 2015 at 6:45 PM, Alex Williamson wrote: > On Wed, 2015-03-04 at 17:07 +0100, Baptiste Reynal wrote: >> This patch series makes the VFIO_IOMMU_TYPE1 driver buildable on ARM, so it >> may be used with ARM SMMUs. It also adds support for the IOMMU_NOEXEC flag >&g

Re: [PATCH v4 0/5] vfio: type1: support for ARM SMMUS with VFIO_IOMMU_TYPE1

2015-03-04 Thread Baptiste Reynal
to be. Another solution could be a boolean in vfio_domain ? Thanks, Baptiste On Wed, Mar 4, 2015 at 5:10 PM, Alex Williamson wrote: > On Wed, 2015-03-04 at 16:21 +0100, Baptiste Reynal wrote: >> Thanks for your comments. A v5 is ongoing, with the removal of >> domain->caps, inst

[PATCH v5 0/4] vfio: type1: support for ARM SMMUS with VFIO_IOMMU_TYPE1

2015-03-04 Thread Baptiste Reynal
behind the SMMU. Changes from v4: - Remove domain->caps, use iommu capacity flags instead Changes from v3: - Rebased on linux v4.0-rc1 - Use bit shifting for domain->caps - Baptiste Reynal is the new maintainer of this serie Changes from v2: - Rebased on latest iommu/next branch by Joerg

[PATCH v5 4/4] vfio: type1: implement the VFIO_DMA_MAP_FLAG_NOEXEC flag

2015-03-04 Thread Baptiste Reynal
: Baptiste Reynal --- drivers/vfio/vfio_iommu_type1.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/drivers/vfio/vfio_iommu_type1.c b/drivers/vfio/vfio_iommu_type1.c index a5847e8..ec313e5 100644 --- a/drivers/vfio/vfio_iommu_type1.c +++ b/drivers/vfio

[PATCH v5 3/4] vfio: type1: replace vfio_domains_have_iommu_cache with generic function

2015-03-04 Thread Baptiste Reynal
From: Antonios Motakis Replace the function vfio_domains_have_iommu_cache() with a more generic function vfio_domains_have_iommu_cap() which allows to check all domains of an vfio_iommu structure for a given cached capability. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal

[PATCH v5 1/4] vfio: implement iommu driver capabilities with an enum

2015-03-04 Thread Baptiste Reynal
From: Antonios Motakis Currently a VFIO driver's IOMMU capabilities are encoded as a series of numerical defines. Replace this with an enum for future maintainability. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal --- include/uapi/linux/vfio.h

[PATCH v5 2/4] vfio: introduce the VFIO_DMA_MAP_FLAG_NOEXEC flag

2015-03-04 Thread Baptiste Reynal
available for all the IOMMUs of the container used. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal --- include/uapi/linux/vfio.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfio.h index 5fb3d46..30801a7 100644 --- a/include

[PATCH v2 1/1] iommu/arm-smmu: fix ARM_SMMU_FEAT_TRANS_OPS condition

2015-03-04 Thread Baptiste Reynal
ned-off-by: Baptiste Reynal --- v1 -> v2: Add domain stage test (Thanks to Will Deacon) --- drivers/iommu/arm-smmu.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index fc13dd5..a3adde6 100644 --- a/drivers/iom

Re: [PATCH v4 0/5] vfio: type1: support for ARM SMMUS with VFIO_IOMMU_TYPE1

2015-03-04 Thread Baptiste Reynal
of creating this artificial bitmap out of the > capabilities. Why can't we keep everything in the domain of actual > flags passed to iommu_ops functions? It's just silly to test for cached > capability and re-invent the mapping flags on every mapping call and > it's just a

Re: [PATCH v4 0/5] vfio: type1: support for ARM SMMUS with VFIO_IOMMU_TYPE1

2015-03-03 Thread Baptiste Reynal
Added Eric Auger for comments. On Mon, Mar 2, 2015 at 5:58 PM, Baptiste Reynal < b.rey...@virtualopensystems.com> wrote: > This patch series makes the VFIO_IOMMU_TYPE1 driver buildable on ARM, so it > may be used with ARM SMMUs. It also adds support for the IOMMU_NOEXEC flag > sup

Re: [PATCH v14 00/20] VFIO support for platform devices

2015-03-03 Thread Baptiste Reynal
Added Eric Auger for comments. On Mon, Mar 2, 2015 at 5:59 PM, Baptiste Reynal < b.rey...@virtualopensystems.com> wrote: > This patch series aims to implement VFIO support for platform devices that > reside behind an IOMMU. Examples of such devices are devices behind an ARM > SM

Re: [PATCH 1/1] iommu/arm-smmu: fix ARM_SMMU_FEAT_TRANS_OPS condition

2015-03-03 Thread Baptiste Reynal
Good point, I didn't thought about it. I will publish a new version with your modifications. Thanks On Mon, Mar 2, 2015 at 6:24 PM, Will Deacon wrote: > On Mon, Mar 02, 2015 at 04:57:22PM +, Baptiste Reynal wrote: > > This patch is a fix to "iommu/arm-smmu: add suppo

[PATCH v14 15/20] vfio: virqfd: rename vfio_pci_virqfd_init and vfio_pci_virqfd_exit

2015-03-02 Thread Baptiste Reynal
From: Antonios Motakis The functions vfio_pci_virqfd_init and vfio_pci_virqfd_exit are not really PCI specific, since we plan to reuse the virqfd code with more VFIO drivers in addition to VFIO_PCI. Signed-off-by: Antonios Motakis [Baptiste Reynal: Move rename vfio_pci_virqfd_init and

[PATCH v14 11/20] vfio/platform: initial interrupts support code

2015-03-02 Thread Baptiste Reynal
From: Antonios Motakis This patch is a skeleton for the VFIO_DEVICE_SET_IRQS IOCTL, around which most IRQ functionality is implemented in VFIO. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal --- drivers/vfio/platform/vfio_platform_common.c | 52

[PATCH v14 12/20] vfio/platform: trigger an interrupt via eventfd

2015-03-02 Thread Baptiste Reynal
ed as maskable and are implemented here using a simple and efficient IRQ handler. Signed-off-by: Antonios Motakis [Baptiste Reynal: fix masked interrupt initialization] Signed-off-by: Baptiste Reynal --- drivers/vfio/platform/vfio_platform_irq.c | 94 ++- drivers

[PATCH v14 19/20] vfio: initialize the virqfd workqueue in VFIO generic code

2015-03-02 Thread Baptiste Reynal
From: Antonios Motakis Now we have finally completely decoupled virqfd from VFIO_PCI. We can initialize it from the VFIO generic code, in order to safely use it from multiple independent VFIO bus drivers. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal --- drivers/vfio

[PATCH v14 13/20] vfio/platform: support for level sensitive interrupts

2015-03-02 Thread Baptiste Reynal
From: Antonios Motakis Level sensitive interrupts are exposed as maskable and automasked interrupts and are masked and disabled automatically when they fire. Signed-off-by: Antonios Motakis [Baptiste Reynal: Move masked interrupt initialization from "vfio/platform: trigger an interrup

[PATCH v14 07/20] vfio/platform: return info for device memory mapped IO regions

2015-03-02 Thread Baptiste Reynal
From: Antonios Motakis This patch enables the IOCTLs VFIO_DEVICE_GET_REGION_INFO ioctl call, which allows the user to learn about the available MMIO resources of a device. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal --- drivers/vfio/platform/vfio_platform_common.c | 106

[PATCH v14 08/20] vfio/platform: read and write support for the device fd

2015-03-02 Thread Baptiste Reynal
Signed-off-by: Baptiste Reynal --- drivers/vfio/platform/vfio_platform_common.c | 150 ++ drivers/vfio/platform/vfio_platform_private.h | 1 + 2 files changed, 151 insertions(+) diff --git a/drivers/vfio/platform/vfio_platform_common.c b/drivers/vfio/platform

[PATCH v14 09/20] vfio/platform: support MMAP of MMIO regions

2015-03-02 Thread Baptiste Reynal
From: Antonios Motakis Allow to memory map the MMIO regions of the device so userspace can directly access them. PIO regions are not being handled at this point. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal --- drivers/vfio/platform/vfio_platform_common.c | 65

[PATCH v14 04/20] vfio: amba: VFIO support for AMBA devices

2015-03-02 Thread Baptiste Reynal
From: Antonios Motakis Add support for discovering AMBA devices with VFIO and handle them similarly to Linux platform devices. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal --- drivers/vfio/platform/vfio_amba.c | 115 ++ include/uapi/linux

[PATCH v14 03/20] vfio: platform: add the VFIO PLATFORM module to Kconfig

2015-03-02 Thread Baptiste Reynal
From: Antonios Motakis Enable building the VFIO PLATFORM driver that allows to use Linux platform devices with VFIO. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal --- drivers/vfio/Kconfig | 1 + drivers/vfio/Makefile | 1 + drivers/vfio/platform/Kconfig

[PATCH v14 16/20] vfio: add local lock for virqfd instead of depending on VFIO PCI

2015-03-02 Thread Baptiste Reynal
From: Antonios Motakis The Virqfd code needs to keep accesses to any struct *virqfd safe, but this comes into play only when creating or destroying eventfds, so sharing the same spinlock with the VFIO bus driver is not necessary. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal

[PATCH v14 20/20] vfio/platform: implement IRQ masking/unmasking via an eventfd

2015-03-02 Thread Baptiste Reynal
From: Antonios Motakis With this patch the VFIO user will be able to set an eventfd that can be used in order to mask and unmask IRQs of platform devices. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal --- drivers/vfio/platform/vfio_platform_irq.c | 47

[PATCH v14 18/20] vfio: move eventfd support code for VFIO_PCI to a separate file

2015-03-02 Thread Baptiste Reynal
Signed-off-by: Baptiste Reynal --- drivers/vfio/pci/Makefile | 3 +- drivers/vfio/pci/vfio_pci_intrs.c | 215 drivers/vfio/pci/vfio_pci_private.h | 3 - drivers/vfio/virqfd.c | 213 +++ include/linux

[PATCH v14 17/20] vfio: pass an opaque pointer on virqfd initialization

2015-03-02 Thread Baptiste Reynal
-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal --- drivers/vfio/pci/vfio_pci_intrs.c | 30 -- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/drivers/vfio/pci/vfio_pci_intrs.c b/drivers/vfio/pci/vfio_pci_intrs.c index 7d3c135..1a16da3 100644

[PATCH v14 14/20] vfio: add a vfio_ prefix to virqfd_enable and virqfd_disable and export

2015-03-02 Thread Baptiste Reynal
Signed-off-by: Baptiste Reynal --- drivers/vfio/pci/vfio_pci_intrs.c | 30 -- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/drivers/vfio/pci/vfio_pci_intrs.c b/drivers/vfio/pci/vfio_pci_intrs.c index f88bfdf..4d38c93 100644 --- a/drivers/vfio/pci

[PATCH v4 4/5] vfio: type1: replace vfio_domains_have_iommu_cache with generic function

2015-03-02 Thread Baptiste Reynal
From: Antonios Motakis Replace the function vfio_domains_have_iommu_cache() with a more generic function vfio_domains_have_iommu_cap() which allows to check all domains of an vfio_iommu structure for a given cached capability. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal

[PATCH v14 10/20] vfio/platform: return IRQ info

2015-03-02 Thread Baptiste Reynal
From: Antonios Motakis Return information for the interrupts exposed by the device. This patch extends VFIO_DEVICE_GET_INFO with the number of IRQs and enables VFIO_DEVICE_GET_IRQ_INFO. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal --- drivers/vfio/platform/Makefile

[PATCH v4 1/5] vfio: implement iommu driver capabilities with an enum

2015-03-02 Thread Baptiste Reynal
From: Antonios Motakis Currently a VFIO driver's IOMMU capabilities are encoded as a series of numerical defines. Replace this with an enum for future maintainability. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal --- include/uapi/linux/vfio.h

[PATCH v4 0/5] vfio: type1: support for ARM SMMUS with VFIO_IOMMU_TYPE1

2015-03-02 Thread Baptiste Reynal
behind the SMMU. Changes from v3: - Rebased on linux v4.0-rc1 - Use bit shifting for domain->caps - Baptiste Reynal is the new maintainer of this serie Changes from v2: - Rebased on latest iommu/next branch by Joerg Roedel Changes from v1: - Bugfixes and corrected some typos - Use enum for V

[PATCH v14 06/20] vfio/platform: return info for bound device

2015-03-02 Thread Baptiste Reynal
VFIO_DEVICE_GET_INFO ioctl call. Signed-off-by: Antonios Motakis [Baptiste Reynal: added include in vfio_platform_common.c] Signed-off-by: Baptiste Reynal --- drivers/vfio/platform/vfio_platform_common.c | 24 +--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/drivers/vfio

[PATCH v14 02/20] vfio: platform: probe to devices on the platform bus

2015-03-02 Thread Baptiste Reynal
From: Antonios Motakis Driver to bind to Linux platform devices, and callbacks to discover their resources to be used by the main VFIO PLATFORM code. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal --- drivers/vfio/platform/vfio_platform.c | 103

[PATCH v14 05/20] vfio: amba: add the VFIO for AMBA devices module to Kconfig

2015-03-02 Thread Baptiste Reynal
Signed-off-by: Baptiste Reynal --- drivers/vfio/platform/Kconfig | 10 ++ drivers/vfio/platform/Makefile | 4 2 files changed, 14 insertions(+) diff --git a/drivers/vfio/platform/Kconfig b/drivers/vfio/platform/Kconfig index c51af17..c0a3bff 100644 --- a/drivers/vfio/platform

[PATCH v14 01/20] vfio/platform: initial skeleton of VFIO support for platform devices

2015-03-02 Thread Baptiste Reynal
platform bus specific code will reside. This will allow us to implement support for also discovering AMBA devices and their resources, but still reuse a large part of the VFIO_PLATFORM implementation. Signed-off-by: Antonios Motakis [Baptiste Reynal: added includes in vfio_platform_private.h] Signed

[PATCH v14 00/20] VFIO support for platform devices

2015-03-02 Thread Baptiste Reynal
linux v4.0-rc1 - Re-added support for ARM AMBA devices - Baptiste Reynal is the new maintainer of this serie Changes since v12: - Reorder chunks to be bisect-able Changes since v11: - Drop support for ARM AMBA devices - vfio_platform_private.h is now self-contained - Fix masked IRQ

[PATCH v4 5/5] vfio: type1: implement the VFIO_DMA_MAP_FLAG_NOEXEC flag

2015-03-02 Thread Baptiste Reynal
: Baptiste Reynal --- drivers/vfio/vfio_iommu_type1.c | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/drivers/vfio/vfio_iommu_type1.c b/drivers/vfio/vfio_iommu_type1.c index 0ea371b..2bbd311 100644 --- a/drivers/vfio/vfio_iommu_type1.c +++ b/drivers

[PATCH v4 3/5] vfio: type1: replace domain wide protection flags with supported capabilities

2015-03-02 Thread Baptiste Reynal
. Signed-off-by: Antonios Motakis [Baptiste Reynal: Use bit shifting for domain->caps] Signed-off-by: Baptiste Reynal --- drivers/vfio/vfio_iommu_type1.c | 31 ++- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/drivers/vfio/vfio_iommu_type1.c b/drivers/v

[PATCH v4 2/5] vfio: introduce the VFIO_DMA_MAP_FLAG_NOEXEC flag

2015-03-02 Thread Baptiste Reynal
available for all the IOMMUs of the container used. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal --- include/uapi/linux/vfio.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfio.h index 5fb3d46..30801a7 100644 --- a/include

[PATCH 1/1] iommu/arm-smmu: fix ARM_SMMU_FEAT_TRANS_OPS condition

2015-03-02 Thread Baptiste Reynal
This patch is a fix to "iommu/arm-smmu: add support for iova_to_phys through ATS1PR". According to ARM documentation, translation registers are optional even in SMMUv1, so ID0_S1TS needs to be checked to verify their presence. Signed-off-by: Baptiste Reynal --- drivers/iommu/arm-

Re: [PATCH v13 00/18] VFIO support for platform devices

2015-02-27 Thread Baptiste Reynal
ier wrote: > Hi Baptiste, > > On 26/02/15 17:02, Baptiste Reynal wrote: > > Hi everyone, > > > > Are there any comments on this patch series? If not, Is there > > anything keeping this series from getting merged upstream? > > For a start, it looks like the de

Re: [PATCH v13 00/18] VFIO support for platform devices

2015-02-26 Thread Baptiste Reynal
Hi everyone, Are there any comments on this patch series? If not, Is there anything keeping this series from getting merged upstream? Thanks, Baptiste On Fri, Jan 30, 2015 at 2:46 PM, Baptiste Reynal < b.rey...@virtualopensystems.com> wrote: > This patch series aims to implement VFI