From nobody Mon Feb 9 19:08:10 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@intel.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1770261227; cv=none; d=zohomail.com; s=zohoarc; b=C9X61Mofn8RnwTtIMIzFp7VGwGT18J5oEH6cb8Nbr28kdCiZy1n2Sr5Vn3cQOPGfvQgbczFzXUV1SZIJebHSeIHdIKk4O7LSLsk+MJj5QzFaiyHPja6TZNwV0zc7wwumk6rOKJYIJdCCbszwuZLDTEJe57wPv7/rPgG9usJJjrk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770261227; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=5YHsadVG67WMG6Y5AagCPM+1QJft0qm5Xr8eASp35Mk=; b=midAt+nG9pAVRZss76yFLXUe0HvfieezICoDexUqQ5A84vl/vc/FHevZAjGYQvcV5wgZQkFkF/BNYe+RvzVI+4au2ee4Y6XLNpNhWAld+nFScgjgmEJZxrdzI6vryrAURAbY14qgDpz+tMwkTNUnzI7LtYhWnvZdaOnZ9rxVokg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@intel.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770261227046148.83266237208932; Wed, 4 Feb 2026 19:13:47 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vnpnw-00061H-I2; Wed, 04 Feb 2026 22:13:16 -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 1vnpnp-0005sK-4z for qemu-devel@nongnu.org; Wed, 04 Feb 2026 22:13:09 -0500 Received: from mgamail.intel.com ([192.198.163.7]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vnpnn-0001xZ-Bv for qemu-devel@nongnu.org; Wed, 04 Feb 2026 22:13:08 -0500 Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2026 19:13:06 -0800 Received: from unknown (HELO gnr-sp-2s-612.sh.intel.com) ([10.112.230.229]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2026 19:13:03 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1770261187; x=1801797187; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=cmZCbFWZBmy27uy8f1zyKQBCOzzDx+hRdvm7jVkNBNc=; b=YXUw1aCkeC0L55sAL5APfZJa92Hux1LQWA5UP+eAZYTZP+2Q2muXRBlM il0XsE2FEakEVTYbdWO9dPiRUho10hRNJze4AdfZTkT91VHbRxaKGpEV3 b9g9jx5GdziKq150+WgPJuvdrItiiyVBiQbpITaep2o120yFoVGHreNMd BdUkKxMms0/qd/cUaZ4uVrAowdLxnyvkckaKpmjlVpNRbgHgklCU5d84v HIzW06abgfeECaqoAsIHR50s9Fob1MWbGDXtjL2Aqh4zS7SXmLwo0URpD R+kanJE50sO2/KNZf0NHB33EN/v48oxQOv299gHRZkbSYfcLmWiRfa2ok g==; X-CSE-ConnectionGUID: SQmXjoQLRiWmWcY+jpE72Q== X-CSE-MsgGUID: /YEFxEs5Roq8PuAeYU5gng== X-IronPort-AV: E=McAfee;i="6800,10657,11691"; a="96910531" X-IronPort-AV: E=Sophos;i="6.21,273,1763452800"; d="scan'208";a="96910531" X-CSE-ConnectionGUID: 1oNtGRgQTim8YQuNfbs4bA== X-CSE-MsgGUID: Br4UWhLNToCTG95Y6s79NA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,273,1763452800"; d="scan'208";a="209652108" 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 , Yi Sun Subject: [RFC PATCH 13/14] intel_iommu: Drop pasid related check Date: Wed, 4 Feb 2026 22:11:31 -0500 Message-ID: <20260205031133.74357-14-zhenzhong.duan@intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260205031133.74357-1-zhenzhong.duan@intel.com> References: <20260205031133.74357-1-zhenzhong.duan@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=192.198.163.7; 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @intel.com) X-ZM-MESSAGEID: 1770261228162154100 Content-Type: text/plain; charset="utf-8" The check of 's->pasid && x86_iommu->dt_supported' is an overkill, because all emulated devices don't support PASID capability yet, they never send Requests-with-PASID, no pasid tagged iotlb entries are cached in the device. Even if guest send PASID-based-Device-TLB invalidation request, we can ignore it safely. Signed-off-by: Yi Sun Signed-off-by: Zhenzhong Duan --- hw/i386/intel_iommu.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c index 17252c804b..4ab50a9fd9 100644 --- a/hw/i386/intel_iommu.c +++ b/hw/i386/intel_iommu.c @@ -5490,17 +5490,6 @@ static void vtd_realize(DeviceState *dev, Error **er= rp) X86MachineState *x86ms =3D X86_MACHINE(ms); PCIBus *bus =3D pcms->pcibus; IntelIOMMUState *s =3D INTEL_IOMMU_DEVICE(dev); - X86IOMMUState *x86_iommu =3D X86_IOMMU_DEVICE(s); - - if (s->pasid && x86_iommu->dt_supported) { - /* - * PASID-based-Device-TLB Invalidate Descriptor is not - * implemented and it requires support from vhost layer which - * needs to be implemented in the future. - */ - error_setg(errp, "PASID based device IOTLB is not supported"); - return; - } =20 if (!vtd_decide_config(s, errp)) { return; --=20 2.47.3