From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.8 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795137461; b=tEehvPXur07DEhBbCQTc/bJ3LBpHSAZXEh/63zJU9VG/1l86jUzsqwP8UkVjh4ZoAHUi taosaZ4/vlFvxy9euFNLTxxzZ+WMxh39zUcIQqdvfh8kT2VMxYSp958bUH2Q8jm5qx12b n+jiyRQerV6JZ6uSv3WvDYndpV2LCL14fmEdmF5S1yq0QcBJ093t08SpcrMd8ImrIaRQj M/iypv5eDHIJ7FC59UtjGv9SchiwW47DUVo+Yq+tApx8QVeKbXtXRZ8UZJJ/HLctbkS5m N0Tw3SFSEynfPxGYR/ayQA3uSqfWUb0gVswGy/zFTIv1jy27z9Vw1RHWE17UmRDNbkg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795137461; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Message-ID:Date: MIME-Version:User-Agent:Cc:Subject:To:References:Content-Language: From:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=JWqZphWtsTTHGvtPX+nDXnK7WB6OveEljmDurlpZ0No=; b=qQR6niDOkf9Gy6POC53j5RXjRDZv/FhmNggkTTT+9QmFF+kTtn1YUNH0Ceh0XF1RZ9Bz ddNdKyZ5LMSHcsSwkt4c9T0WRGchRcrt40uKG+7MTr6MSnEbg0ED/jhOQW1k5DEOwB0kC TtR3FW+aBQTF9PIWD+nok3XQa12+xBM2K+YNeMxpWZ2JehvpODF8JKhSEyN6lej4qeBoI oMPxoT963UJEgLItC9L+VHcM5XVxF7vspxbpBaH4n27OWNR6i6Qs8AS9AF1SUffVzTKdY UBBhHLadcBbNBzCqnY5cqqnbnwmavUGMSXgpSjipryzeGWylEiPiiEbKPbGLhQaFwLw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=aPghIyo8; arc=none smtp.remote-ip=192.198.163.8 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 31C82606A325; Fri, 20 Nov 2026 01:17:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 31C82606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=aPghIyo8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795137461; x=1826673461; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=tSIkeLpI67gd3O+5LLJj1iLHNmboO3o26BMKDZZIKS4=; b=aPghIyo8Z1W1kb/cxIa0wLjw6A4YTOtfIdXrqpHYns3irNqFTHetajdl Q02ZSeW0gIMQkmldP1A6abda4RmyAWICoDQrr6Ir30/aYonZ5OrwSOt1o mKL2psiG51rsaBWssbXryauQPKcyp5Y+s/aMTV5tuR7NV2UNe/VypjQSV T8ZP+USZXWvyvitmtDYRPDSzkLq0+ZscmgIuzLqJibTnxJ6/HK+CxQZmF MaKRmqSvAi56ep1y3flg+DkdDDDguZ59XkO4V43zya+Wqqf4bcLMHIE+d VyCZJsX5LtR3oAXpcUkFlF4pKNlALZJR+2E+3qbkjCgnyMBvBWd0wNC4G w==; X-CSE-ConnectionGUID: zdMHTuVJRyWqFm/d66qo6Q== X-CSE-MsgGUID: XL79DZygTaOQ9IYeUE2yIg== X-IronPort-AV: E=McAfee;i="6800,10657,11971"; a="3908754" X-IronPort-AV: E=Sophos;i="6.27,222,1787036400"; d="scan'208";a="3908754" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Nov 2026 17:17:40 -0800 X-CSE-ConnectionGUID: 6v5FeCvQRiSoxhgN7PCPHA== X-CSE-MsgGUID: l3gJMTkWTfSiu/FcIwximA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,222,1787036400"; d="scan'208";a="10478625" Received: from unknown (HELO [10.238.1.144]) ([10.238.1.144]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Nov 2026 17:17:32 -0800 Message-ID: <3201ab57-cba6-4484-8dbd-7cfb79d731cf@linux.intel.com> Date: Fri, 20 Nov 2026 09:17:30 +0800 X-Mailing-List: linux-tegra@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: baolu.lu@linux.intel.com, Alex Williamson , Alexey Kardashevskiy , Bjorn Helgaas , Catalin Marinas , Jacob Pan , Jason Gunthorpe , Joerg Roedel , Jonathan Cameron , Jonathan Hunter , Kevin Tian , Krishna Reddy , Lukas Wunner , Nicolin Chen , Robin Murphy , Samuel Ortiz , Shameer Kolothum , Steven Price , Suravee Suthikulpanit , Suzuki K Poulose , Thierry Reding , Vasant Hegde , Will Deacon , Xu Yilun , Ashish Kalra , Herbert Xu , iommu@lists.linux.dev, Jonathan Cameron , Tom Lendacky , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, linux-tegra@vger.kernel.org, patches@lists.linux.dev Subject: Re: [PATCH v9 06/13] iommufd: Add a vDEVICE operation ioctl framework To: "Aneesh Kumar K.V (Arm)" , linux-coco@lists.linux.dev References: <20261116081935.85372-1-aneesh.kumar@kernel.org> <20261116081935.85372-7-aneesh.kumar@kernel.org> Content-Language: en-US From: Baolu Lu In-Reply-To: <20261116081935.85372-7-aneesh.kumar@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/16/2026 4:19 PM, Aneesh Kumar K.V (Arm) wrote: > Add IOMMU_VDEVICE_OP to execute operations on a vDEVICE using separate > request and response buffers. Each operation defines its request and > response formats, with response capacity checked before changing device > state. > > Look up the vDEVICE and check its supported_ops mask before dispatching > an operation. Reject out-of-range operation numbers before testing the > corresponding bit. Backends set the mask during vdevice_init(). > > This patch defines no operations. The default dispatch returns > -EOPNOTSUPP; later patches can add operations independently. > > Cc: Jason Gunthorpe > Cc: Kevin Tian > Cc: Joerg Roedel > Cc: Will Deacon > Cc: Robin Murphy > Cc: Alexey Kardashevskiy > Cc: Lukas Wunner > Cc:iommu@lists.linux.dev > Signed-off-by: Aneesh Kumar K.V (Arm) > --- > drivers/iommu/iommufd/iommufd_private.h | 1 + > drivers/iommu/iommufd/main.c | 3 +++ > drivers/iommu/iommufd/viommu.c | 36 +++++++++++++++++++++++++ > include/linux/iommufd.h | 3 +++ > include/linux/tsm.h | 1 + > include/uapi/linux/iommufd.h | 33 +++++++++++++++++++++++ > 6 files changed, 77 insertions(+) Reviewed-by: Lu Baolu