Re: [RFC PATCH 0/1] iommu: Detach device from domain when removed from group

2015-08-03 Thread Gerald Schaefer
On Mon, 3 Aug 2015 17:48:55 +0200 Joerg Roedel wrote: > On Tue, Jul 28, 2015 at 07:55:55PM +0200, Gerald Schaefer wrote: > > On s390, this eventually leads to a kernel panic when binding the device > > again to its non-vfio PCI driver, because of the missing arch-specific > > cleanup in detach_de

Re: [RFC PATCH 0/1] iommu: Detach device from domain when removed from group

2015-08-03 Thread Joerg Roedel
On Tue, Jul 28, 2015 at 07:55:55PM +0200, Gerald Schaefer wrote: > On s390, this eventually leads to a kernel panic when binding the device > again to its non-vfio PCI driver, because of the missing arch-specific > cleanup in detach_dev. On x86, the detach_dev callback will also not be > called dir

Re: [RFC PATCH 0/1] iommu: Detach device from domain when removed from group

2015-08-03 Thread Gerald Schaefer
On Tue, 28 Jul 2015 19:55:55 +0200 Gerald Schaefer wrote: > Hi, > > during IOMMU API function testing on s390 I hit the following scenario: > > After binding a device to vfio-pci, the user completes the VFIO_SET_IOMMU > ioctl and stops, see the sample C program below. Now the device is manually

[RFC PATCH 0/1] iommu: Detach device from domain when removed from group

2015-07-28 Thread Gerald Schaefer
Hi, during IOMMU API function testing on s390 I hit the following scenario: After binding a device to vfio-pci, the user completes the VFIO_SET_IOMMU ioctl and stops, see the sample C program below. Now the device is manually removed via "echo 1 > /sys/bus/pci/devices/.../remove". Although the S