Re: [PATCH] On unmap, flush IOMMU TLB and return correct size

2013-10-02 Thread David Woodhouse
On Sat, 2013-09-21 at 21:59 -0500, David Woodhouse wrote: > Here's a completely untested work-in-progress that attempts to fix that. > I'll be able to test it myself on about Tuesday when I'm home from New > Orleans and awake... Or might have been if my laptop's hard drive hadn't died. Here's an u

Re: [PATCH 3/7] Return info for device and its memory regions and interrupts

2013-10-02 Thread Antonios Motakis
On Wed, Oct 2, 2013 at 3:03 PM, Yoder Stuart-B08248 wrote: > > >> -Original Message- >> From: Antonios Motakis [mailto:a.mota...@virtualopensystems.com] >> Sent: Wednesday, October 02, 2013 6:22 AM >> To: Yoder Stuart-B08248 >> Cc: Alex Williamson; kvm-arm; Linux IOMMU; Linux Samsung SOC;

RE: [PATCH 3/7] Return info for device and its memory regions and interrupts

2013-10-02 Thread Yoder Stuart-B08248
> -Original Message- > From: Antonios Motakis [mailto:a.mota...@virtualopensystems.com] > Sent: Wednesday, October 02, 2013 6:22 AM > To: Yoder Stuart-B08248 > Cc: Alex Williamson; kvm-arm; Linux IOMMU; Linux Samsung SOC; KVM devel > mailing list; Alexander Graf; VirtualOpenSystems Techni

RE: [PATCH 1/7] VFIO_IOMMU_TYPE1 workaround to build for platform devices

2013-10-02 Thread Yoder Stuart-B08248
> -Original Message- > From: Antonios Motakis [mailto:a.mota...@virtualopensystems.com] > Sent: Wednesday, October 02, 2013 6:14 AM > To: Yoder Stuart-B08248 > Cc: Alex Williamson; kvm...@lists.cs.columbia.edu; iommu@lists.linux- > foundation.org; linux-samsung-...@vger.kernel.org; k...@v

Re: [PATCH 3/7] Return info for device and its memory regions and interrupts

2013-10-02 Thread Antonios Motakis
On Tue, Oct 1, 2013 at 9:32 PM, Yoder Stuart-B08248 wrote: >> Antonios Motakis wrote >> > Alex Williamson wrote: >> > I notice all the open firmware calls here and I'm curious, >> > will all platform devices be making use of open firmware? >> > I don't know if this is synonymous with device tree

Re: [PATCH 1/7] VFIO_IOMMU_TYPE1 workaround to build for platform devices

2013-10-02 Thread Antonios Motakis
On Tue, Oct 1, 2013 at 9:21 PM, Yoder Stuart-B08248 wrote: >> > static int __init vfio_iommu_type1_init(void) >> > { >> > - if (!iommu_present(&pci_bus_type)) >> > +#ifdef CONFIG_PCI >> > + if (iommu_present(&pci_bus_type)) { >> > + iommu_bus_type = &pci_bus_type; >> > +

Re: [PATCH 6/6] iommu/arm-smmu: Support buggy implemenations where all config accesses are secure

2013-10-02 Thread Will Deacon
On Tue, Oct 01, 2013 at 07:17:09PM +0100, Andreas Herrmann wrote: > On Tue, Oct 01, 2013 at 09:28:51AM -0400, Rob Herring wrote: > > On 10/01/2013 07:39 AM, Andreas Herrmann wrote: > > > In such a case we have to use secure aliases of some non-secure > > > registers. > > > > > > This behaviour is

Re: [PATCH] intel-iommu: Fix leaks in pagetable freeing

2013-10-02 Thread Borislav Petkov
On Sat, Jun 15, 2013 at 10:27:19AM -0600, Alex Williamson wrote: > At best the current code only seems to free the leaf pagetables and > the root. If you're unlucky enough to have a large gap (like any > QEMU guest with more than 3G of memory), only the first chunk of leaf > pagetables are freed (