[PATCH v10 08/18] iommufd: Add a vDEVICE operation ioctl framework

Tian, Kevin kevin.tian at intel.com
Thu Dec 3 00:25:43 PST 2026


> From: Aneesh Kumar K.V <aneesh.kumar at kernel.org>
> Sent: Thursday, December 3, 2026 4:17 PM
> 
> "Tian, Kevin" <kevin.tian at intel.com> writes:
> 
> >> From: Aneesh Kumar K.V (Arm) <aneesh.kumar at kernel.org>
> >> Sent: Wednesday, November 25, 2026 4:11 PM
> >>
> >> 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.
> >>
> >
> > Given this is a tsm series, it'd be clearer to include related ops definition
> > (e.g. IOMMU_VDEVICE_OP_SET_TDISP_STATE) in this series instead of
> > leaving it to be dig out from your cca repo.
> 
> 
> The conclusion was that the required set of operations is still unclear.
> We initially had multiple operations to read or regenerate different
> SPDM objects. After switching to an attestation-based interface, the CCA
> series now has:
> 
> enum iommu_vdevice_ops {
> 	IOMMU_VDEVICE_OP_SET_TDISP_STATE = 0,
> 	IOMMU_VDEVICE_OP_GET_ATTESTATION_FD = 1,
> };
> 
> This was not included in the series to keep the interface open until the
> TDX and TIO implementations help finalize the operations list.
> 

this series is in-progress so nothing can be considered ready. IMHO
including it helps understand the overall picture. You can add a note
that the actual definition is not finalized. 



More information about the linux-arm-kernel mailing list