Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp2302533ybj; Mon, 23 Sep 2019 01:08:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqyxpdlFSVvX+DQbVJJhWEylKk09GYCz2vDVoXUkKNPwpYc4yVeXeozZt71FtmnRBVMZmpxH X-Received: by 2002:a50:d556:: with SMTP id f22mr34712896edj.263.1569226107807; Mon, 23 Sep 2019 01:08:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569226107; cv=none; d=google.com; s=arc-20160816; b=1CydOsrpFyDi7JtqISKwD8GEXvhvPceYkkqjWf/JSJtW9gf9+g9lzoM4r7V4V3Qxfq eXWfL5LFp8vWRFL4q2CywXaan5KBb38tLNwhiucU/RUOzYb0b1s6V63tjgofn1PE4HsZ NqOAmIBY2WTTD9MzUvF860zUwElCdnGFUCkIdIAKxkfbrX2mxGOUVU9gVf1735SSFGAQ EjXQqyBxHNpSYJ4lpJXArpHuyPNVnXFr4HLAC6SqKVWJkvwT0WsUz1K4FBH5Y/P4H2Xx TwGWjCkzWJ//gx1Xe5AnAwGMbCxbKiaCd8oVsA6ZGyNy3H9l9SeZ3N1C09B1TnMke8eP SEHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WDmmqCZYXexmb0eMYG+EBBMVOjtRn4WXWY9o5YS1U8w=; b=gbr056SWywInaaB3u26LmJTVcnPrcxoa6SYDjGkUFW54+KV9bCwhdAjZNJX14yWRKW Mmie9ao/hxHwWT6A42sDM+oTc0tFqtJCWvd3PXrTgwRMgPPadIHmEHKdic0j64DziGSm KY/GCBX6Rz4Y1RUYF8Z/JKQqMOCDZL987wt21ewmrzILkzQlNjOT5xCSA8236FkDqKra J+O/ovc8H1+imDciW+IP01rNHDOnYqPyvsNRhY5ulQ/p/IlxWZanjj6Y0/rcRcluAkAy wXbZCdP6sdMDMdqQlXRh6s8YjeNb8qnancKgEr2ezZTu4ahIPhMAbGlHwWet7Z5MayQM Liew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XHKi2HpQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p43si6004450edc.368.2019.09.23.01.08.04; Mon, 23 Sep 2019 01:08:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XHKi2HpQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393678AbfITQcj (ORCPT + 99 others); Fri, 20 Sep 2019 12:32:39 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:35947 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391242AbfITQci (ORCPT ); Fri, 20 Sep 2019 12:32:38 -0400 Received: by mail-ed1-f66.google.com with SMTP id h2so7074850edn.3 for ; Fri, 20 Sep 2019 09:32:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=WDmmqCZYXexmb0eMYG+EBBMVOjtRn4WXWY9o5YS1U8w=; b=XHKi2HpQvTaSkYa589k9BCAaRbhq1vYia/RSN+zRQi7UhZpXqMPGKbGrZz7sGIXaAk 4O9q+WGUu4fcL0IATXV0mJZxtaPNNNo7tlde6UlnOA0Tb+Niquur3wEf4lK28211rCLo /Eb+yd5VQQ42If/e68qL+FbFI9U+N+u4vv6V46QgiTaoPpQ2OH5wcxUYEfWtMY1znh5h nMqygv3vOtftd1WqijSQ5m1tFGJBW/kBReEDoour9JUJsyoTHYN1gZHw/cYNQ2E1zq7O aSwNUfDm0cL+hwYdEPj12VhzM7L9QEVqO+6IuNkRDvItfoccVz36ICWHVNiy9JmTaCNg KGdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=WDmmqCZYXexmb0eMYG+EBBMVOjtRn4WXWY9o5YS1U8w=; b=QmUi0gDAkP5I4gu6V6zm8BjuV97QMzeAOw96exKD8G39iFbFxB5KXMUIK5BqGgrppM f6uCwMHwQeDkdf8X2QKTKSVdgGeLyz5eg9XrhmdOxYn9WiSpOdVJSOdeJU2IdNW4w3Oc 6ARD6ssmIpWB9FCRpct2pcNzyNRmFA9Z7i4rkz3mdi8+llZGmIreSNBOv+DOSUoS+9wY vEnlRMyXiywevdhso5J3P+AdDy51Pk0hbn7S7U7kdizW7YqeB43ppvC/GELcGM0x38RK 04RH9RIacRj2vZIroS3GZoKjFT6ujx4iLxseTfD9h1x1A2HSfZmgOmmvxR44JvYjaqKD U+Mw== X-Gm-Message-State: APjAAAXE3cg1268yTD1YN2ccLfX+oAx1uos0zExoJRGaaYbiq+IsDYtj 9QHkGr3iB9zqGfXQkORf6tMbcQ== X-Received: by 2002:a17:906:5c49:: with SMTP id c9mr20162972ejr.78.1568997157032; Fri, 20 Sep 2019 09:32:37 -0700 (PDT) Received: from lophozonia ([85.195.192.192]) by smtp.gmail.com with ESMTPSA id j8sm405906edy.44.2019.09.20.09.32.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2019 09:32:36 -0700 (PDT) Date: Fri, 20 Sep 2019 18:32:34 +0200 From: Jean-Philippe Brucker To: Jacob Pan Cc: iommu@lists.linux-foundation.org, LKML , Joerg Roedel , David Woodhouse , Alex Williamson , "Tian, Kevin" , Raj Ashok , Jonathan Cameron Subject: Re: [PATCH 1/4] iommu: Introduce cache_invalidate API Message-ID: <20190920163234.GA1533866@lophozonia> References: <1568849194-47874-1-git-send-email-jacob.jun.pan@linux.intel.com> <1568849194-47874-2-git-send-email-jacob.jun.pan@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1568849194-47874-2-git-send-email-jacob.jun.pan@linux.intel.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 18, 2019 at 04:26:31PM -0700, Jacob Pan wrote: > From: Yi L Liu > > In any virtualization use case, when the first translation stage > is "owned" by the guest OS, the host IOMMU driver has no knowledge > of caching structure updates unless the guest invalidation activities > are trapped by the virtualizer and passed down to the host. > > Since the invalidation data can be obtained from user space and will be > written into physical IOMMU, we must allow security check at various > layers. Therefore, generic invalidation data format are proposed here, > model specific IOMMU drivers need to convert them into their own format. > > Signed-off-by: Yi L Liu > Signed-off-by: Jacob Pan > Signed-off-by: Ashok Raj > Signed-off-by: Eric Auger > Signed-off-by: Jean-Philippe Brucker I tried to take a fresh look at this and didn't see anything problematic, though I might have been the last one to edit it. Anyway: Reviewed-by: Jean-Philippe Brucker