Received: by 10.192.165.156 with SMTP id m28csp1137699imm; Mon, 16 Apr 2018 14:56:26 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/qOJA3DWy9wiHxncTtQSBDKQ7EyVKMOwAM33z0g2JvhWAkJwg5F/WxcjdU0A2ZT6od2YfD X-Received: by 10.99.109.138 with SMTP id i132mr7032735pgc.314.1523915786584; Mon, 16 Apr 2018 14:56:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523915786; cv=none; d=google.com; s=arc-20160816; b=obw0969gGd+ukwuLtSgGSyqw02vfUaLa8lnDG+lqHY4lA3FAeagmVVI5WCrftwlty9 wOzjkVMCGf1RMPh6c9x8xLpHwGPhtvFo+gEDJUYR5p616clx/rGiqhcdDg0bhj9ilMF2 S9BEHnfo4A5JEanOj3U+/2STdv5pmze6qW6PWcTaUGpiSHC0XM6fYgDDLfwhBgIv51wF rMpQSCj+d2tdgdQY3JZ+boc4dWR1hGO45wMXEVJQPyxsG/WGty4WU/mGg/exrARG65te HPUupe+zKLf0FEHXrDAcMdyB9zvX3fMJjyY+0XO6g2KSeUARr83JYa32fg7lpUI+Nzul tiMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=KF4t0cP+bAhPnaLtu9P8y8ZF1rYXdAoeEZ5mqDsumC8=; b=UNIxhjDXACgPK9NtsedDDqVK0lIrLFXiQkOTjtttjgT3yMU0dTrUdUN3ehimx+MrQZ scRVA4M5dzA7mjiXvjrTgML8dGv5xUjE6kqR5CM2o7MK5EH7Uxf0pCPXL/chHA6jFGQQ FH+Ev5hCXLjjjypKpXBmne3rs7X/TFNYvXjn1h3/LEd993iPgEhJdA36TLGEDbmYEyJh xg/3X3rgfd9+uCe5i/9xowBAzpCt/0mLNld64ElvEBtaPL1B3FRFhlUxDbxCrRdMfZuh /1rSo+MnLQlNKE5Hn25wFtTKi1oRxvGGnM0tayf0L5y+6cTNg4TzfEp7wvlIlqblojFq Vt6A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f7si9996260pgs.556.2018.04.16.14.56.12; Mon, 16 Apr 2018 14:56:26 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752973AbeDPVyj (ORCPT + 99 others); Mon, 16 Apr 2018 17:54:39 -0400 Received: from mga09.intel.com ([134.134.136.24]:12290 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752806AbeDPVqo (ORCPT ); Mon, 16 Apr 2018 17:46:44 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Apr 2018 14:46:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,460,1517904000"; d="scan'208";a="34740140" Received: from jacob-builder.jf.intel.com ([10.7.199.155]) by orsmga006.jf.intel.com with ESMTP; 16 Apr 2018 14:46:42 -0700 From: Jacob Pan To: iommu@lists.linux-foundation.org, LKML , Joerg Roedel , David Woodhouse , Greg Kroah-Hartman , Alex Williamson , Jean-Philippe Brucker Cc: Rafael Wysocki , "Liu, Yi L" , "Tian, Kevin" , Raj Ashok , Jean Delvare , "Christoph Hellwig" , "Lu Baolu" , Jacob Pan Subject: [PATCH v4 03/22] iommu/vt-d: add a flag for pasid table bound status Date: Mon, 16 Apr 2018 14:48:52 -0700 Message-Id: <1523915351-54415-4-git-send-email-jacob.jun.pan@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523915351-54415-1-git-send-email-jacob.jun.pan@linux.intel.com> References: <1523915351-54415-1-git-send-email-jacob.jun.pan@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding a flag in device domain into to track whether a guest or user PASID table is bound to a device. Signed-off-by: Jacob Pan --- include/linux/intel-iommu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h index 304afae..ddc7d79 100644 --- a/include/linux/intel-iommu.h +++ b/include/linux/intel-iommu.h @@ -473,6 +473,7 @@ struct device_domain_info { u8 pri_enabled:1; u8 ats_supported:1; u8 ats_enabled:1; + u8 pasid_table_bound:1; u8 ats_qdep; u64 fault_mask; /* selected IOMMU faults to be reported */ struct device *dev; /* it's NULL for PCIe-to-PCI bridge */ -- 2.7.4