[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 v5 0/3] vfio: platform: return device properties for a platform device

2015-10-02 Thread Alex Williamson
On Wed, 2015-09-30 at 11:07 +0200, Baptiste Reynal wrote: > 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

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

2015-10-02 Thread Christoffer Dall
On Fri, Oct 02, 2015 at 01:28:19PM -0600, Alex Williamson wrote: > On Wed, 2015-09-30 at 11:07 +0200, Baptiste Reynal wrote: > > 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 t

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

2015-10-02 Thread Peter Maydell
On 2 October 2015 at 21:28, Christoffer Dall wrote: > We discussed this for the purposes of ARM during SFO15 last week, and > basically arrived at the conclusion that the resonable thing to do is to > rely on sysfs device tree parsing in userspace. We don't have a great > solution for ACPI yet, b

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

2015-10-05 Thread Christoffer Dall
On Fri, Oct 02, 2015 at 11:53:07PM +0100, Peter Maydell wrote: > On 2 October 2015 at 21:28, Christoffer Dall > wrote: > > We discussed this for the purposes of ARM during SFO15 last week, and > > basically arrived at the conclusion that the resonable thing to do is to > > rely on sysfs device tre

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

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

2015-10-05 Thread Christoffer Dall
[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 userspace, which 'already available kernel interface' is that exactly? > in order to keep > t

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 userspace, > > which 'already a

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

2015-10-05 Thread Peter Maydell
On 5 October 2015 at 10:37, Christoffer Dall wrote: > On Fri, Oct 02, 2015 at 11:53:07PM +0100, Peter Maydell wrote: >> * I don't really want to build in a lot of infrastructure into >>QEMU to either build the DTC compiler into it or else introduce >>a runtime dependency on the dtc binary

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

2015-10-05 Thread Christoffer Dall
[cc'ing Mark R. and Shannon for their input on FDT and ACPI]. On Mon, Oct 05, 2015 at 11:07:35AM +0100, Peter Maydell wrote: > On 5 October 2015 at 10:37, Christoffer Dall > wrote: > > On Fri, Oct 02, 2015 at 11:53:07PM +0100, Peter Maydell wrote: > >> * I don't really want to build in a lot of

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

2015-10-05 Thread Mark Rutland
On Mon, Oct 05, 2015 at 12:32:00PM +0200, Christoffer Dall wrote: > [cc'ing Mark R. and Shannon for their input on FDT and ACPI]. > > On Mon, Oct 05, 2015 at 11:07:35AM +0100, Peter Maydell wrote: > > On 5 October 2015 at 10:37, Christoffer Dall > > wrote: > > > On Fri, Oct 02, 2015 at 11:53:07PM