Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1067686pxk; Fri, 18 Sep 2020 03:04:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycV9J1FcQKZn/NEc2yPkeGyXXNTcHqS8kapQeNsqcoAx95luxAxKD/Y+GFjZV4WElK8Rfv X-Received: by 2002:a17:906:b24e:: with SMTP id ce14mr34588496ejb.494.1600423441611; Fri, 18 Sep 2020 03:04:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600423441; cv=none; d=google.com; s=arc-20160816; b=SADw3I4uRmTGcUI0rqckTbHBYAHJ4aa+/I+QIrkrEiXzGdedSMwAGR9kfnUxZruSzr jM8BO0rBk+clkHl51dFssY1a2LIug96jCgv4cnuJOCWovomjQPts0hUrprt9ER6pCixx eHsomO38ikgtHtKDujorhb73M3JY41+2tJfh3vgvne5fmiMu3CLrKjzQfkMwCFSKidtV vyRIqXxm061SQrcbkAfy+NTLXHfVLZFIJ+w5PM0htPU91VZQf0gfMmq2JLWjGtmbshYR Oj0aEKZU06hI0fZJwdioUIFHIirZU3pBfMwAwVUtii13Ai9ln3LdPOJYtuCkXqalohHP rEoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=TL+6yypZs7qPloM3ZRCJlXNvwJjjPYNzrIdjTNuVGIg=; b=BYGOL3MDRIxwZKJIBDc9AW5JBVUlwRBbymzOsQ63qMy3J4Ko4//T1ZFX3qmECun8+4 LY7ybCNLHkpLiwFR/v2B9os3ksQWJfPUdjOLECswj18nklW7DIm99QKpTlqwgBf6k66v n/iu1x6KN0u1o7IMfV5uEd9xVIKGXT8rZs/eDkoj2Wrl1Pe5vp5yMFPYDJh/7J2UCNcJ bkIDEQ/N/ud/a3J6CuPY7j6DB6dkgGdTqhEXLqYDQDyDuAhKVQkfH5GQjmP075QHug6W mc9a1w4Im8jOklmnKBdR47twOVsDY/6ynip30LR6IMVSV6B8PQACyd+4PgakC0TqpwPK Ju9A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g16si2110764ejf.211.2020.09.18.03.03.37; Fri, 18 Sep 2020 03:04:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726149AbgIRKCj (ORCPT + 99 others); Fri, 18 Sep 2020 06:02:39 -0400 Received: from 8bytes.org ([81.169.241.247]:45262 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725941AbgIRKCi (ORCPT ); Fri, 18 Sep 2020 06:02:38 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id 91457293; Fri, 18 Sep 2020 12:02:37 +0200 (CEST) Date: Fri, 18 Sep 2020 12:02:36 +0200 From: Joerg Roedel To: Jacob Pan Cc: iommu@lists.linux-foundation.org, LKML , Alex Williamson , Lu Baolu , David Woodhouse , Jonathan Corbet , Jean-Philippe Brucker , Eric Auger , Jacob Pan , Yi Liu , "Tian, Kevin" , Raj Ashok , Wu Hao , Yi Sun Subject: Re: [PATCH v9 0/7] IOMMU user API enhancement Message-ID: <20200918100235.GQ31590@8bytes.org> References: <1599861476-53416-1-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: <1599861476-53416-1-git-send-email-jacob.jun.pan@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jacob, On Fri, Sep 11, 2020 at 02:57:49PM -0700, Jacob Pan wrote: > IOMMU user API header was introduced to support nested DMA translation and > related fault handling. The current UAPI data structures consist of three > areas that cover the interactions between host kernel and guest: > - fault handling > - cache invalidation > - bind guest page tables, i.e. guest PASID > > Future extensions are likely to support more architectures and vIOMMU features. > > In the previous discussion, using user-filled data size and feature flags is > made a preferred approach over a unified version number. > https://lkml.org/lkml/2020/1/29/45 > > In addition to introduce argsz field to data structures, this patchset is also > trying to document the UAPI design, usage, and extension rules. VT-d driver > changes to utilize the new argsz field is included, VFIO usage is to follow. > > This set is available at: > https://github.com/jacobpan/linux.git vsva_v5.9_uapi_v9 This changes user visible structs in incompatible ways, are you sure those are not used yet anywhere? Please address Randy's comments on patch 1 and my comment about the build-time checking and repost with linux-api@vger.kernel.org on Cc. Regards, Joerg