Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751457Ab1F2FCL (ORCPT ); Wed, 29 Jun 2011 01:02:11 -0400 Received: from mail-yw0-f46.google.com ([209.85.213.46]:56505 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750832Ab1F2FCG (ORCPT ); Wed, 29 Jun 2011 01:02:06 -0400 MIME-Version: 1.0 In-Reply-To: <1308843083-10442-1-git-send-email-joerg.roedel@amd.com> References: <1308843083-10442-1-git-send-email-joerg.roedel@amd.com> Date: Wed, 29 Jun 2011 14:02:02 +0900 X-Google-Sender-Auth: owww8eafE9gpPxFpOSf9xLR14RA Message-ID: Subject: Re: [PATCH 0/2] Introduce iommu_commit() function From: KyongHo Cho To: Joerg Roedel Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, David Woodhouse , Ohad Ben-Cohen , David Brown , kvm@vger.kernel.org, Avi Kivity , Alex Williamson Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 811 Lines: 22 Hi. On Fri, Jun 24, 2011 at 12:31 AM, Joerg Roedel wrote: > It needs to be called whenever a some code changed a domain (either by > attaching/detaching devices or by mapping/unmapping pages in > the domain). Do you mean we can invalidate IOTLB with this iommu_commit()? We need to invalidate IOTLB without updating page table for some optimized solutions. If a device in one domain is moved to other domain, IOTLB of the device must be invalidated because it contains translation information of the previous domain. Regards, KyongHo Cho. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/