From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk2-f13.google.com (mail-qk2-f13.google.com [74.125.230.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B0464582D4 for ; Fri, 18 Sep 2026 13:13:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.230.205 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789737210; cv=none; b=JSsgzAR7dQ44sgoeXyf4Xs5SAeqX+AuIVIWR6bJQYcXs+k7BpiYCqtlPaeVcEsOXSOu5VfS/QOKEBenEIP0COPz9Wg1iYqYukGJZIiMsLfB7Qc5NiD2pVplSm+gQqs7L05v969/3HNhXmY22a2yDJF8aZ29qyQwi6Ux3YbTPbTU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789737210; c=relaxed/simple; bh=0e/Us3WlYuqZCrvqyucnYIvOewYG6+iESgxv213CRfg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ra+QAl1uRJWWC6v9S+hOJ7oByISUZ5kqNUElkeElDYcm8WXgEsccS1VT4ssQMFPuV2LgxUglRtwc1zhtIM0vw0iwHqg5m6kl1CMF8UwMqPX5wLuaLJ9D4te3uj3aicL3nwYJyjZHYEVuR77xi0HucRIpjx5oF07f8xhHOvvK8PI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=FZaeWuIv; arc=none smtp.client-ip=74.125.230.205 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="FZaeWuIv" Received: by mail-qk2-f13.google.com with SMTP id d75a77b69052e-52fb767cc97so6789641cf.3 for ; Fri, 18 Sep 2026 06:13:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1789737208; x=1790342008; darn=lists.linux.dev; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=RgJgP9V+TanXYXiwf33sE6+6RN244WVmbEbqLcX7cFg=; b=FZaeWuIv+zD2IPphoYfg+Jtgm04i5wDJ4IAwb1zgQREw01jwseZblsufvSSw/JR5F0 MHfnH18Z5NXlsmjBj0V2QFsRDFyYx/4qi37d+gJFmvPDyvkiP2GUleqgddwTYTXj2BVQ xFG6fqbLBOIJoAwgJ7lk/NzIuzRByOAOMDpVGGveQsNPiCBmhgXlIuj20kD3b3yitxwT tDUdZL01WV05XYMrsbOtNO7mQTafUwsgEcPcW4vEoyHEIVZqzVZG+IdiDzrJDMCPUY6G 5Jrg/Q065sdtz2B+1jLuwdMgxR+9ZH6bMkAtbl8tk9ClP21yb+E/eDF4+SNqxd9G3jZv +2Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789737208; x=1790342008; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=RgJgP9V+TanXYXiwf33sE6+6RN244WVmbEbqLcX7cFg=; b=kTic/CV11nl/EoFNgTA4Po6hx9d0v9sOZ6dhd//vb+E+MeNWXkCZrG5K7MGL1KN7KE 6KLvaPSWYn+H2XmRaY7f1IFkKNTpIMpklgbNDTItqtY5+m1Bg1aBHLaeFu98bnlun7xJ P0R7NNQjNSBfQcBZ9l+PYQJzpgyHId7tVRu+LoyyGL77cLtPibS3PPRZaxfhEWr1zO0/ gk+aqQeGq6lmVTMkmDHOhVqULIqywdg17wsmwhSDt19wyYr0lnhCJ+oOwUNJT5sEINIw LF+iea0XLTLGG7snsSbqebx8WwD36F7JTP8Lk/C0ZY6fzDRdlA4mUuTSsDl3+pzBJROm fB8Q== X-Forwarded-Encrypted: i=1; AKwUvBw4HRhKhuVeYqJkMW4YUdlRh5VHPIUmqDkDfw1Zco80ivoM+QtPUq7thTK3bXGqhJqQ2/zIf19ZXLTp@lists.linux.dev X-Gm-Message-State: AFuF++mDUooJ9a26Tc7EwII6TS7Wu0MMMyDrCD1VSR7uLSWgbu46PBt0 RmKz0U3oAP0nuX1brkInzX/0jEToge3VD92Ga5n0YhBCEOXAvAYhyKaa1RtH6BMmGz4= X-Gm-Gg: AYBFou0K8Lp0Oo2dwFU/891UKYcCkc2ubEHpQHP7D3UT1qfOCrGlWuNpNUir0KqR7+h NWZQcLytigY/7psN17w/tJNwoPF/5g9J6+OCQj7VYXJHqjifync9VnFVIynQU0djwanixHjUlV5 8oQnx67ynscrJ2qpEKiGtQvMd2bsW8vCxq6oStxYmJzJJBxPdeo6JgjId2EoKHMZVLMkjzonDCa kjaUewYz3Ng0sD7D7HMtpQDVhxHibRa0n2z+qLF3s0wrYsd0pUBqGPZOehKVq5jqRDBroI0DZMu id4VvGQGh9zXFhDn6e6mXg6T39rBLuh1xMfOHv8LCRDo7THob8v0/WqqZv3XHLgmqT0SFHk8ruL k9eQSbwugeyO6ku/C5k92n5aj/zeCkxBxMBA6bwxqilrrPvEFeTrIqhAqR/N4WlgjdLc/noQ9XW 1GwvleSCasJqZN0o6h9AMw2eMQZRWrHpECS8PWLClcVhpb6no2Jy1w2+ntZ5D61S1bR8V4NNnSW t+nu5JQCVDejP+c+TarZD3QPBWcAysNBMcEAbyV+7uxvp9KICNkFp/P X-Received: by 2002:a05:622a:550:b0:532:a5a2:e652 with SMTP id d75a77b69052e-532a5a2f397mr15646941cf.79.1789737208228; Fri, 18 Sep 2026 06:13:28 -0700 (PDT) Received: from ziepe.ca (hlfxns010zw-159-2-239-150.pppoe-dynamic.high-speed.ns.bellaliant.net. [159.2.239.150]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-532aac41140sm3599291cf.5.2026.09.18.06.13.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Sep 2026 06:13:27 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1x7YP9-00000001CUD-0PCN; Fri, 18 Sep 2026 10:13:27 -0300 Date: Fri, 18 Sep 2026 10:13:27 -0300 From: Jason Gunthorpe To: Alexey Kardashevskiy Cc: "Aneesh Kumar K.V (Arm)" , linux-coco@lists.linux.dev, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Bjorn Helgaas , Joerg Roedel , Jonathan Cameron , Kevin Tian , Nicolin Chen , Samuel Ortiz , Steven Price , Suzuki K Poulose , Will Deacon , Xu Yilun , Shameer Kolothum , Paolo Bonzini Subject: Re: [RFC PATCH v6 09/11] iommufd: Add the vdevice TSM request ioctl Message-ID: <20260918131327.GB11599@ziepe.ca> References: <20260917140159.1163281-1-aneesh.kumar@kernel.org> <20260917140159.1163281-10-aneesh.kumar@kernel.org> Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Sep 18, 2026 at 11:09:29PM +1000, Alexey Kardashevskiy wrote: > > > On 18/9/26 00:01, Aneesh Kumar K.V (Arm) wrote: > > A VMM needs to forward guest-originated TSM commands to the TSM > > implementation managing an assigned device. The IOMMUFD vdevice > > identifies that device within its vIOMMU and provides the appropriate > > dispatch point. > > > > Add IOMMU_VDEVICE_TSM_REQ to send an opaque request to a vdevice and > > optionally return a response. Define common operation and guest > > architecture identifiers for CCA, SEV and TDX requests. > > iommufd_viommu_provider_ops already knows what architecture it is, > why bother with these identifiers? Thanks, At the uAPI boundary we want something like a strace to be able to dump and inspect the system call without having to inspect hidden knowledge of what is inside the FD. That's a huge PITA. So saything 'this is an x86 format request that uses this coding' is the right thing. Jason