[PATCH v10 08/18] iommufd: Add a vDEVICE operation ioctl framework
Tian, Kevin
kevin.tian at intel.com
Wed Dec 2 22:01:35 PST 2026
> 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.
More information about the linux-arm-kernel
mailing list