From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk2-f42.google.com (mail-qk2-f42.google.com [74.125.230.234]) (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 48D603C661A for ; Fri, 18 Sep 2026 13:13:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.230.234 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789737210; cv=none; b=baa/bejs1s+VoUKlVZRHP9X+LXkO3MtBs2M1UcB14t1xSriTYyoddqDinJOHbdv0Pa6DcShAnVMYSBgklWfIwBhaKPizhlzGq8TI1ZQqA/RXbQCHoQ3nnW51IaGxlOjdp2kJhrVbJp33xdUlXHHrpwB/sekRshrqJndlHdk+ADg= 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=QymDbWPx; arc=none smtp.client-ip=74.125.230.234 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="QymDbWPx" Received: by mail-qk2-f42.google.com with SMTP id d75a77b69052e-52fb767cc97so6789611cf.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=vger.kernel.org; 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=QymDbWPxT3LIIkAo24f4eqDGDQL8cnAxHXQdGvCMdYVBu9HuWti5/IeVLbVSeaAzl3 WX2j58XQXmSLMksuVUzTfRpBaxjZne3SqE86c0anqQppyuEnL3qgemBbrX9XoY4+ejja 4lOANYFlwqrV34QnNlaJrE+Us5d3DciOB6S0nU5dFH8UEOvAnzHGKHq7phwlBqMxNBm4 Gq5PS6+VvQZSaEt2V1Z7FO+D2gk4HeOaQiOrpUv8a4bKLyo9s7uefYOgR8Ba4oPJjAYj ar6w1dcRwLdDGhC9sDIIcyM6rmKUOr1JmnHA8kIMQu/UZITv6qoxa28Yera2UJX3U8PC tBKg== 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=XUZXhWSD+VKf1MUoO04pga0gdpjatDGG8HQ3hhN98JCsWduKpaYCUCe8L00NpKp9eL AHNNqLnwzbRP2X/BahPJm9y9SmADNEOm5ImRS/7mlQrH0Q5hXd9jHlV0ieSW9kQGuO55 3ucevZhddx/WEmhZ5u46p0JuRfoSqlbf31Wj21/CHlBsdAdA6IkGyvsETp0tcloPVkav UESmfViVK8E4U7JHO/Ci2Fe0NJMM3wS1ALjFu1uFeKFHjZfuqJqfsbqXUfW/reSyHoBN /mKlUm+E5pgDtnKpD3QreQ1RSFjUjcIcVmNSY7GLRJVJP96GPvLqLdyag9hsafC5ljTK 56lA== X-Forwarded-Encrypted: i=1; AKwUvBxOLF6kNSjRX9G+nAn5u6kFTaNbYyCx3HUJ5A7VfzGsIDOgDWq7OdFupLIcuWJr6DTFuKPKrOT1OkZ9yqs=@vger.kernel.org X-Gm-Message-State: AFuF++kH/0DL2uQaGcVdc+QUEurfQ/QNiT4XkLnIyQ2Ch5c/cmU2r98M CH//qzIVa1CMw5KwIc7OUBIiXDK/UVc2GEsouDqcOivkpQUM92Uy7tSYeLsHNU4/IU4= X-Gm-Gg: AYBFou2ytssqLdLPYL94pRBmHn/minSQglWkCLV9vqS/ZKjbg49YddVL4F/29DsC9Q3 kNwiDUOrdlKJa1Xhwd+tQtUYaSgw2FIVIWvJB7aOMVRb4ifdmgQC3GzonznB/shAD0VY3pGwvX5 rDG90T70K2EVYlft7mwNudwupw8bwCBdULRcITRHKpOAyNBRqnS7J0vmk6h5XscalnlU721wviG 3zPM51kojxzbw65d/YCej9gKkROHpcDSXAU5xFJ3xSLhx8cc1uS4k+lq+MysIfIz1vTTE7ec6TT 1+8+HmfHbYuBopgOiMHUOul8RLgSOBIJnYtim9fel4FbrX1amy1Uivwkb+drXb9KjB1VyQr36Xr uOkE6r8Hp5UjFcZpFgw7/LMHRxGK8puFvzlm8/rbiDNJOuKw1o0WCga61KMiwW+hW2gMjgXUuKB SPU2Sk28eWTf1OoEaa8ux3viFc5At5MZXA8WtswmZdxfYCMUkLzolCZgGflqv7jK7Tq/cFSihGZ Rljzf+Qv/lzpeAZPcF3sXyJTCNvEGCTBZGuCvdDprZ7ujjnmr4CmDqa 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-kernel@vger.kernel.org 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