From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 071E0C433E0 for ; Tue, 7 Jul 2020 01:44:42 +0000 (UTC) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C8A6A2070C for ; Tue, 7 Jul 2020 01:44:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C8A6A2070C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8A9EC89687; Tue, 7 Jul 2020 01:44:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QyAYFH4XQjPa; Tue, 7 Jul 2020 01:44:38 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by hemlock.osuosl.org (Postfix) with ESMTP id D41E488BFD; Tue, 7 Jul 2020 01:44:38 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id C3F1BC0893; Tue, 7 Jul 2020 01:44:38 +0000 (UTC) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 43513C016F for ; Tue, 7 Jul 2020 01:44:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 2A92388BFD for ; Tue, 7 Jul 2020 01:44:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 71yWh0KYrAVr for ; Tue, 7 Jul 2020 01:44:36 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by hemlock.osuosl.org (Postfix) with ESMTPS id E5B1988A5F for ; Tue, 7 Jul 2020 01:44:35 +0000 (UTC) IronPort-SDR: TgqN6+7Iy4YwB9M9d1zfKjr7noj9u/xQTMo29KuMkfM4eVh04Ylt2sPzONCIACyFYZt35sLEYl Ic2cIjtY693Q== X-IronPort-AV: E=McAfee;i="6000,8403,9674"; a="149036787" X-IronPort-AV: E=Sophos;i="5.75,321,1589266800"; d="scan'208";a="149036787" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2020 18:44:35 -0700 IronPort-SDR: HFLhQnGpMHKamOHZBRQ+F+vBuVPMBcUnf+p3xHf4IHlvImkUA3ScTysnJAuTevgcGcP2WaYAEb hzRXtwRh7few== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,321,1589266800"; d="scan'208";a="266688906" Received: from allen-box.sh.intel.com ([10.239.159.139]) by fmsmga007.fm.intel.com with ESMTP; 06 Jul 2020 18:44:32 -0700 From: Lu Baolu To: Joerg Roedel , Alex Williamson , Robin Murphy Subject: [PATCH v2 0/2] iommu_aux_at(de)tach_device() enhancement Date: Tue, 7 Jul 2020 09:39:55 +0800 Message-Id: <20200707013957.23672-1-baolu.lu@linux.intel.com> X-Mailer: git-send-email 2.17.1 Cc: Kevin Tian , Dave Jiang , Ashok Raj , kvm@vger.kernel.org, Cornelia Huck , linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" This series aims to enhance the iommu_aux_at(de)tach_device() api's so that some generic iommu api's like iommu_get_domain_for_dev() could also work for vfio/mdev device. The initial version of this series was post at https://lkml.org/lkml/2020/6/26/1118 This version is evolved according to Robin's feedback. Your comments are very appreciated. Best regards, baolu Lu Baolu (2): iommu: iommu_aux_at(de)tach_device() extension iommu: Add aux_domain_attached flag to iommu_group drivers/iommu/iommu.c | 98 +++++++++++++++++++++++++++++---- drivers/vfio/vfio_iommu_type1.c | 5 +- include/linux/iommu.h | 12 ++-- 3 files changed, 99 insertions(+), 16 deletions(-) -- 2.17.1 _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6CD7AC433DF for ; Tue, 7 Jul 2020 01:44:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5511D20708 for ; Tue, 7 Jul 2020 01:44:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727826AbgGGBog (ORCPT ); Mon, 6 Jul 2020 21:44:36 -0400 Received: from mga03.intel.com ([134.134.136.65]:40649 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726918AbgGGBof (ORCPT ); Mon, 6 Jul 2020 21:44:35 -0400 IronPort-SDR: lXTP9Mb1/OvcMrzJk7R7z7kIaaslSUq1eXnrawBCINmHY+O2TGjFsKQRMjpQ7DhzXQUSPp+kyo 1SZ9ijSsQkeA== X-IronPort-AV: E=McAfee;i="6000,8403,9674"; a="147536122" X-IronPort-AV: E=Sophos;i="5.75,321,1589266800"; d="scan'208";a="147536122" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2020 18:44:35 -0700 IronPort-SDR: HFLhQnGpMHKamOHZBRQ+F+vBuVPMBcUnf+p3xHf4IHlvImkUA3ScTysnJAuTevgcGcP2WaYAEb hzRXtwRh7few== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,321,1589266800"; d="scan'208";a="266688906" Received: from allen-box.sh.intel.com ([10.239.159.139]) by fmsmga007.fm.intel.com with ESMTP; 06 Jul 2020 18:44:32 -0700 From: Lu Baolu To: Joerg Roedel , Alex Williamson , Robin Murphy Cc: Cornelia Huck , Kevin Tian , Ashok Raj , Dave Jiang , Liu Yi L , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Lu Baolu Subject: [PATCH v2 0/2] iommu_aux_at(de)tach_device() enhancement Date: Tue, 7 Jul 2020 09:39:55 +0800 Message-Id: <20200707013957.23672-1-baolu.lu@linux.intel.com> X-Mailer: git-send-email 2.17.1 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org This series aims to enhance the iommu_aux_at(de)tach_device() api's so that some generic iommu api's like iommu_get_domain_for_dev() could also work for vfio/mdev device. The initial version of this series was post at https://lkml.org/lkml/2020/6/26/1118 This version is evolved according to Robin's feedback. Your comments are very appreciated. Best regards, baolu Lu Baolu (2): iommu: iommu_aux_at(de)tach_device() extension iommu: Add aux_domain_attached flag to iommu_group drivers/iommu/iommu.c | 98 +++++++++++++++++++++++++++++---- drivers/vfio/vfio_iommu_type1.c | 5 +- include/linux/iommu.h | 12 ++-- 3 files changed, 99 insertions(+), 16 deletions(-) -- 2.17.1