mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-05 12:25:19 +00:00
vmm: openapi: Switch to describing new payload API
The old API remains usable, and will remain usable for two releases but we should only advertise the new API. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
51fdc48817
commit
8c22c03e1e
@ -499,21 +499,28 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
description: Information about a PCI device
|
description: Information about a PCI device
|
||||||
|
|
||||||
|
PayloadConfig:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
kernel:
|
||||||
|
type: string
|
||||||
|
cmdline:
|
||||||
|
type: string
|
||||||
|
initramfs:
|
||||||
|
type: string
|
||||||
|
description: Payloads to boot in guest
|
||||||
|
|
||||||
VmConfig:
|
VmConfig:
|
||||||
required:
|
required:
|
||||||
- kernel
|
- payload
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
cpus:
|
cpus:
|
||||||
$ref: "#/components/schemas/CpusConfig"
|
$ref: "#/components/schemas/CpusConfig"
|
||||||
memory:
|
memory:
|
||||||
$ref: "#/components/schemas/MemoryConfig"
|
$ref: "#/components/schemas/MemoryConfig"
|
||||||
kernel:
|
payload:
|
||||||
$ref: "#/components/schemas/KernelConfig"
|
$ref: "#/components/schemas/PayloadConfig"
|
||||||
initramfs:
|
|
||||||
$ref: "#/components/schemas/InitramfsConfig"
|
|
||||||
cmdline:
|
|
||||||
$ref: "#/components/schemas/CmdLineConfig"
|
|
||||||
disks:
|
disks:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
@ -721,31 +728,6 @@ components:
|
|||||||
items:
|
items:
|
||||||
$ref: "#/components/schemas/MemoryZoneConfig"
|
$ref: "#/components/schemas/MemoryZoneConfig"
|
||||||
|
|
||||||
KernelConfig:
|
|
||||||
required:
|
|
||||||
- path
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
path:
|
|
||||||
type: string
|
|
||||||
|
|
||||||
InitramfsConfig:
|
|
||||||
nullable: true
|
|
||||||
required:
|
|
||||||
- path
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
path:
|
|
||||||
type: string
|
|
||||||
|
|
||||||
CmdLineConfig:
|
|
||||||
required:
|
|
||||||
- args
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
args:
|
|
||||||
type: string
|
|
||||||
|
|
||||||
TokenBucket:
|
TokenBucket:
|
||||||
required:
|
required:
|
||||||
- size
|
- size
|
||||||
|
Loading…
Reference in New Issue
Block a user