vmm: OpenAPI: Make DeviceConfig path optional

`path` is no longer required in the DeviceConfig, since a VFIO
device may also be supplied via a pre-opened cdev FD passed via
SCM_RIGHTS alongside the /vm.add-device request.

Signed-off-by: Bo Chen <bchen@crusoe.ai>
Assisted-by: Claude:Opus-4.7
This commit is contained in:
Bo Chen
2026-04-24 19:58:18 +00:00
committed by Rob Bradford
parent c315d5fd96
commit 0419ab6f39

View File

@@ -1285,12 +1285,15 @@ components:
type: integer
DeviceConfig:
required:
- path
type: object
properties:
path:
type: string
description: |
Sysfs path of the VFIO device. Exactly one of `path` or an
externally-opened cdev FD must be supplied; an FD is passed
out of band via SCM_RIGHTS on the UNIX domain socket, never
in this body.
iommu:
type: boolean
default: false