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

Aneesh Kumar K.V aneesh.kumar at kernel.org
Thu Dec 3 00:17:03 PST 2026


"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.

-aneesh



More information about the linux-arm-kernel mailing list