mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-06 09:37:56 +00:00
pci: whitespace, indentation and formating fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
13d689792e
commit
1fac3a0b31
@ -32,40 +32,40 @@ EODESCR
|
|||||||
},
|
},
|
||||||
rombar => {
|
rombar => {
|
||||||
type => 'boolean',
|
type => 'boolean',
|
||||||
description => "Specify whether or not the device's ROM will be visible in the guest's memory map.",
|
description => "Specify whether or not the device's ROM will be visible in the"
|
||||||
|
." guest's memory map.",
|
||||||
optional => 1,
|
optional => 1,
|
||||||
default => 1,
|
default => 1,
|
||||||
},
|
},
|
||||||
romfile => {
|
romfile => {
|
||||||
type => 'string',
|
type => 'string',
|
||||||
pattern => '[^,;]+',
|
pattern => '[^,;]+',
|
||||||
format_description => 'string',
|
format_description => 'string',
|
||||||
description => "Custom pci device rom filename (must be located in /usr/share/kvm/).",
|
description => "Custom pci device rom filename (must be located in /usr/share/kvm/).",
|
||||||
optional => 1,
|
optional => 1,
|
||||||
},
|
},
|
||||||
pcie => {
|
pcie => {
|
||||||
type => 'boolean',
|
type => 'boolean',
|
||||||
description => "Choose the PCI-express bus (needs the 'q35' machine model).",
|
description => "Choose the PCI-express bus (needs the 'q35' machine model).",
|
||||||
optional => 1,
|
optional => 1,
|
||||||
default => 0,
|
default => 0,
|
||||||
},
|
},
|
||||||
'x-vga' => {
|
'x-vga' => {
|
||||||
type => 'boolean',
|
type => 'boolean',
|
||||||
description => "Enable vfio-vga device support.",
|
description => "Enable vfio-vga device support.",
|
||||||
optional => 1,
|
optional => 1,
|
||||||
default => 0,
|
default => 0,
|
||||||
},
|
},
|
||||||
'legacy-igd' => {
|
'legacy-igd' => {
|
||||||
type => 'boolean',
|
type => 'boolean',
|
||||||
description => "Pass this device in legacy IGD mode (allows required"
|
description => "Pass this device in legacy IGD mode, making it the primary and exclusive"
|
||||||
. " 1f.0 PCI bridge and assigns correct address)."
|
." graphics device in the VM. Requires 'pc-i440fx' machine type and VGA set to 'none'.",
|
||||||
. " Requires i440fx machine type and VGA set to 'none'.",
|
|
||||||
optional => 1,
|
optional => 1,
|
||||||
default => 0,
|
default => 0,
|
||||||
},
|
},
|
||||||
'mdev' => {
|
'mdev' => {
|
||||||
type => 'string',
|
type => 'string',
|
||||||
format_description => 'string',
|
format_description => 'string',
|
||||||
pattern => '[^/\.:]+',
|
pattern => '[^/\.:]+',
|
||||||
optional => 1,
|
optional => 1,
|
||||||
description => <<EODESCR
|
description => <<EODESCR
|
||||||
@ -78,9 +78,9 @@ EODESCR
|
|||||||
PVE::JSONSchema::register_format('pve-qm-hostpci', $hostpci_fmt);
|
PVE::JSONSchema::register_format('pve-qm-hostpci', $hostpci_fmt);
|
||||||
|
|
||||||
our $hostpcidesc = {
|
our $hostpcidesc = {
|
||||||
optional => 1,
|
optional => 1,
|
||||||
type => 'string', format => 'pve-qm-hostpci',
|
type => 'string', format => 'pve-qm-hostpci',
|
||||||
description => "Map host PCI devices into guest.",
|
description => "Map host PCI devices into guest.",
|
||||||
verbose_description => <<EODESCR,
|
verbose_description => <<EODESCR,
|
||||||
Map host PCI devices into guest.
|
Map host PCI devices into guest.
|
||||||
|
|
||||||
@ -428,7 +428,7 @@ sub print_hostpci_devices {
|
|||||||
warn "ignoring mediated device '$id' with multifunction device\n";
|
warn "ignoring mediated device '$id' with multifunction device\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
my $j=0;
|
my $j = 0;
|
||||||
foreach my $pcidevice (@$pcidevices) {
|
foreach my $pcidevice (@$pcidevices) {
|
||||||
my $devicestr = "vfio-pci";
|
my $devicestr = "vfio-pci";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user