]> git.proxmox.com Git - mirror_qemu.git/commit
x86: pci: acpi: consolidate PCI slots creation
authorIgor Mammedov <imammedo@redhat.com>
Fri, 1 Jul 2022 13:35:15 +0000 (09:35 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 9 Oct 2022 20:38:46 +0000 (16:38 -0400)
commit3216ab2acb08b47d4ff83e709406690d37e44aff
treec39d6d8815a621fb478b92dc4697c737e940889a
parent1ccd2220948c8d577ec8a3473a15f52ce2841800
x86: pci: acpi: consolidate PCI slots creation

No functional changes nor AML bytecode changes.
Consolidate code that generates empty and populated slot
descriptors. Besides eliminating duplication,
it helps consolidate conditions for generating
parts of Device{} desriptor in one place, which makes
code more compact and easier to read.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20220701133515.137890-18-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-build.c