Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1CE6AEF99FA for ; Sat, 14 Feb 2026 03:43:10 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vr6YK-0005NZ-EG; Fri, 13 Feb 2026 22:42:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vr6YI-0005N7-U1 for qemu-devel@nongnu.org; Fri, 13 Feb 2026 22:42:38 -0500 Received: from mgamail.intel.com ([198.175.65.12]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vr6YH-0008J1-C9 for qemu-devel@nongnu.org; Fri, 13 Feb 2026 22:42:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1771040557; x=1802576557; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LiCckamDJARkM29it4+GmExQOwvpYcX1Aa4iyhrdEAY=; b=R4yUrio/slLBTnFmiUhQnzCzc08PpL4T0Qs9Gh3p0ZoKJnVj0KkkTLxa xr9GdI5J80l+i0hnvJQZHvmHszMOWdE3MsOaJ+foom++WYTJTG+yCB1pH b0cgmeGwtZ8Rmi+v79aYIGzAz6wl4Ikl1gd/cSxvGN89F5+f5szhKXLrS cgRxPvX4ScTPylhZe253tIO/7O1SR/TCr2IkrJhTO9XYErJETDhz6S95u TagBEhtlPZQksZpWDbXhIeDFOireDAO+a5dUpYmxBCdwGzr6EBLZpUQ4k zllj0ZSNfzMxylJ5kb4Mm7gZ2jCZAAilmVa/71/z8X9x+/RoGYkgO9g3g g==; X-CSE-ConnectionGUID: j6fvcX5FTUaEWPHCb7Uv6w== X-CSE-MsgGUID: XPbW8WknSoa0OzMsnffocw== X-IronPort-AV: E=McAfee;i="6800,10657,11700"; a="83666883" X-IronPort-AV: E=Sophos;i="6.21,289,1763452800"; d="scan'208";a="83666883" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Feb 2026 19:42:37 -0800 X-CSE-ConnectionGUID: 1EdsHg3KSRGE75K46MBj4A== X-CSE-MsgGUID: CaqArC9nTE62g4RC1zUZRA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,289,1763452800"; d="scan'208";a="212933147" Received: from unknown (HELO gnr-sp-2s-612.sh.intel.com) ([10.112.230.229]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Feb 2026 19:42:33 -0800 From: Zhenzhong Duan To: qemu-devel@nongnu.org Cc: alex@shazbot.org, clg@redhat.com, eric.auger@redhat.com, mst@redhat.com, jasowang@redhat.com, jgg@nvidia.com, nicolinc@nvidia.com, skolothumtho@nvidia.com, joao.m.martins@oracle.com, clement.mathieu--drif@eviden.com, kevin.tian@intel.com, yi.l.liu@intel.com, xudong.hao@intel.com, Zhenzhong Duan Subject: [RFCv2 PATCH 13/13] intel_iommu: Expose flag VIOMMU_FLAG_PASID_SUPPORTED when configured Date: Fri, 13 Feb 2026 22:41:33 -0500 Message-ID: <20260214034135.220413-14-zhenzhong.duan@intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260214034135.220413-1-zhenzhong.duan@intel.com> References: <20260214034135.220413-1-zhenzhong.duan@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=198.175.65.12; envelope-from=zhenzhong.duan@intel.com; helo=mgamail.intel.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org VFIO device will check flag VIOMMU_FLAG_PASID_SUPPORTED and expose PASID capability, or else guest could not enable PASID of this device even if vIOMMU's pasid is configured. This is the final knob to enable PASID. Signed-off-by: Zhenzhong Duan --- hw/i386/intel_iommu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c index c1b31b17de..eaf384f40b 100644 --- a/hw/i386/intel_iommu.c +++ b/hw/i386/intel_iommu.c @@ -4779,6 +4779,7 @@ static uint64_t vtd_get_viommu_flags(void *opaque) uint64_t flags; flags = s->fsts ? VIOMMU_FLAG_WANT_NESTING_PARENT : 0; + flags |= s->pasid ? VIOMMU_FLAG_PASID_SUPPORTED : 0; return flags; } -- 2.47.3