mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user