diff mbox

[RFC,v2,12/13] vfio: Enable DDW ioctls to VFIO IOMMU driver

Message ID 1408097555-28126-13-git-send-email-aik@ozlabs.ru
State New
Headers show

Commit Message

Alexey Kardashevskiy Aug. 15, 2014, 10:12 a.m. UTC
This enables DDW RTAS-related ioctls in VFIO.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
---
 hw/misc/vfio.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

David Gibson Aug. 26, 2014, 7:20 a.m. UTC | #1
On Fri, Aug 15, 2014 at 08:12:34PM +1000, Alexey Kardashevskiy wrote:
> This enables DDW RTAS-related ioctls in VFIO.
> 
> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>

This should probably just be folded into the previous patch.  It's
broken without this change.
Alexey Kardashevskiy Aug. 26, 2014, 8:20 a.m. UTC | #2
On 08/26/2014 05:20 PM, David Gibson wrote:
> On Fri, Aug 15, 2014 at 08:12:34PM +1000, Alexey Kardashevskiy wrote:
>> This enables DDW RTAS-related ioctls in VFIO.
>>
>> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
> 
> This should probably just be folded into the previous patch.  It's
> broken without this change.

It won't work but it is not broken - guest will fail to create DDW and
continue using the default windows.

And since the series needs attention of 2 maintainers (A. Williamson and A.
Graf), it is better to draw bold line between areas :)
David Gibson Aug. 27, 2014, 8:42 a.m. UTC | #3
On Tue, Aug 26, 2014 at 06:20:51PM +1000, Alexey Kardashevskiy wrote:
> On 08/26/2014 05:20 PM, David Gibson wrote:
> > On Fri, Aug 15, 2014 at 08:12:34PM +1000, Alexey Kardashevskiy wrote:
> >> This enables DDW RTAS-related ioctls in VFIO.
> >>
> >> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
> > 
> > This should probably just be folded into the previous patch.  It's
> > broken without this change.
> 
> It won't work but it is not broken - guest will fail to create DDW and
> continue using the default windows.
> 
> And since the series needs attention of 2 maintainers (A. Williamson and A.
> Graf), it is better to draw bold line between areas :)

Ah, ok, that makes sense then.
diff mbox

Patch

diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c
index ba08adb..5b95cfa 100644
--- a/hw/misc/vfio.c
+++ b/hw/misc/vfio.c
@@ -4453,6 +4453,10 @@  int vfio_container_ioctl(AddressSpace *as, int32_t groupid,
     switch (req) {
     case VFIO_CHECK_EXTENSION:
     case VFIO_IOMMU_SPAPR_TCE_GET_INFO:
+    case VFIO_IOMMU_SPAPR_TCE_QUERY:
+    case VFIO_IOMMU_SPAPR_TCE_CREATE:
+    case VFIO_IOMMU_SPAPR_TCE_REMOVE:
+    case VFIO_IOMMU_SPAPR_TCE_RESET:
         break;
     default:
         /* Return an error on unknown requests */