lkml.org 
[lkml]   [2011]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[02/89] intel-iommu: Flush unmaps at domain_exit
    2.6.39-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Alex Williamson <alex.williamson@redhat.com>

    commit 7b668357810ecb5fdda4418689d50f5d95aea6a8 upstream.

    We typically batch unmaps to be lazily flushed out at
    regular intervals. When we destroy a domain, we need
    to force a flush of these lazy unmaps to be sure none
    reference the domain we're about to free.

    Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=35062
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
    Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/pci/intel-iommu.c | 4 ++++
    1 file changed, 4 insertions(+)

    --- a/drivers/pci/intel-iommu.c
    +++ b/drivers/pci/intel-iommu.c
    @@ -1416,6 +1416,10 @@ static void domain_exit(struct dmar_doma
    if (!domain)
    return;

    + /* Flush any lazy unmaps that may reference this domain */
    + if (!intel_iommu_strict)
    + flush_unmaps_timeout(0);
    +
    domain_remove_dev_info(domain);
    /* destroy iovas */
    put_iova_domain(&domain->iovad);



    \
     
     \ /
      Last update: 2011-06-16 09:45    [W:0.022 / U:184.232 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site