mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: add pci_segment mmio aperture configs
When using multiple PCI segments, the 32-bit and 64-bit mmio aperture is split equally between each segment. Add an option to configure the 'weight'. For example, a PCI segment with a `mmio32_aperture_weight` of 2 will be allocated twice as much 32-bit mmio space as a normal PCI segment. Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com>
This commit is contained in:
@@ -618,6 +618,10 @@ components:
|
||||
pvpanic:
|
||||
type: boolean
|
||||
default: false
|
||||
pci_segments:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/PciSegmentConfig"
|
||||
platform:
|
||||
$ref: "#/components/schemas/PlatformConfig"
|
||||
tpm:
|
||||
@@ -683,6 +687,21 @@ components:
|
||||
features:
|
||||
$ref: "#/components/schemas/CpuFeatures"
|
||||
|
||||
PciSegmentConfig:
|
||||
required:
|
||||
- pci_segment
|
||||
type: object
|
||||
properties:
|
||||
pci_segment:
|
||||
type: integer
|
||||
format: int16
|
||||
mmio32_aperture_weight:
|
||||
type: integer
|
||||
format: int32
|
||||
mmio64_aperture_weight:
|
||||
type: integer
|
||||
format: int32
|
||||
|
||||
PlatformConfig:
|
||||
type: object
|
||||
properties:
|
||||
|
||||
Reference in New Issue
Block a user