Re: [PATCH 087/103] qemuBuildControllerPCIDevStr: Format via JSON properties

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On a Thursday in 2021, Peter Krempa wrote:
Internally format the PCI controller properties into JSON, but convert
it back to a string so that we for now change just the SCSI controller.

The change in tests is expected as the 'port' field for various PCI
controllers is expected to be a number and thus can't be represented as
a hexadecimal value in JSON.

QEMU expects the following types:

'pci-bridge'
 chassis_nr=<uint8>     -  (default: 0)

'pxb-pcie':
 bus_nr=<uint8>         -  (default: 0)

'pcie-root-port'
 port=<uint8>           -  (default: 0)
 chassis=<uint8>        -  (default: 0)
 hotplug=<bool>         -  (default: true)

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
src/qemu/qemu_command.c                       | 99 +++++++++++++------
...fault-cpu-kvm-virt-4.2.aarch64-latest.args |  4 +-
...fault-cpu-tcg-virt-4.2.aarch64-latest.args |  4 +-
.../qemuxml2argvdata/aarch64-pci-serial.args  |  2 +-

Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>

Jano

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux