OSDN Git Service

hw/pci-host/q35: Initialize PCMachineState::bus in board code
authorBernhard Beschow <shentey@gmail.com>
Fri, 30 Jun 2023 07:37:06 +0000 (09:37 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 10 Jul 2023 20:29:17 +0000 (16:29 -0400)
commit06a492bd2b75653970e30c3ae0ea79ab1ed4ae31
treecab13ab8d4a469ea78043bb3a58b090630b2d91f
parent8cf08065b1b19cea1958a43187755cec6546a5d0
hw/pci-host/q35: Initialize PCMachineState::bus in board code

The Q35 PCI host currently sets the PC machine's PCI bus attribute
through global state, thereby assuming the machine to be a PC machine.
The Q35 machine code already holds on to Q35's pci bus attribute, so can
easily set its own property while preserving encapsulation.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230630073720.21297-4-shentey@gmail.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/pc_q35.c
hw/pci-host/q35.c