vmm: Add a vDPA device parameter

Introduce a new --vdpa parameter associated with a VdpaConfig for the
future creation of a Vdpa device.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2022-03-11 10:57:42 +01:00
parent be7c389120
commit 72169686fe
4 changed files with 185 additions and 0 deletions

View File

@@ -505,6 +505,10 @@ components:
type: array
items:
$ref: '#/components/schemas/DeviceConfig'
vdpa:
type: array
items:
$ref: '#/components/schemas/VdpaConfig'
vsock:
$ref: '#/components/schemas/VsockConfig'
sgx_epc:
@@ -921,6 +925,23 @@ components:
id:
type: string
VdpaConfig:
required:
- path
- num_queues
type: object
properties:
path:
type: string
num_queues:
type: integer
default: 1
pci_segment:
type: integer
format: int16
id:
type: string
VsockConfig:
required:
- cid