[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [PATCH v5 for-2.3 21/28] hw/pci: inform bios
From: |
Michael S. Tsirkin |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [PATCH v5 for-2.3 21/28] hw/pci: inform bios if the system has more than one pci bridge |
Date: |
Tue, 10 Mar 2015 17:36:10 +0100 |
On Tue, Mar 10, 2015 at 05:32:07PM +0200, Marcel Apfelbaum wrote:
> From: Marcel Apfelbaum <address@hidden>
>
> The bios looks for 'etc/extra-pci-roots' to decide if
> is going to scan further buses after bus 0 tree.
>
> Signed-off-by: Marcel Apfelbaum <address@hidden>
Again it's not the right thing to do for extra root
complexes, only works for PXB.
> ---
> hw/i386/pc.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/hw/i386/pc.c b/hw/i386/pc.c
> index ae3ef0a..71d2f5b 100644
> --- a/hw/i386/pc.c
> +++ b/hw/i386/pc.c
> @@ -1072,9 +1072,22 @@ typedef struct PcGuestInfoState {
> static
> void pc_guest_info_machine_done(Notifier *notifier, void *data)
> {
> + PCIHostState *host;
> + int hosts = 0;
> PcGuestInfoState *guest_info_state = container_of(notifier,
> PcGuestInfoState,
> machine_done);
> + HOST_BRIDGE_FOREACH(host) {
> + hosts++;
> + }
> +
> + if (hosts && guest_info_state->info.fw_cfg) {
> + uint64_t *val = g_malloc(sizeof(*val));
> + *val = cpu_to_le64(hosts - 1);
> + fw_cfg_add_file(guest_info_state->info.fw_cfg,
> + "etc/extra-pci-roots", val, sizeof(*val));
> + }
> +
> acpi_setup(&guest_info_state->info);
> }
>
> --
> 2.1.0
- [Qemu-ppc] [Qemu-devel] [PATCH v5 for-2.3 15/28] hw/pci: made pci_bus_is_root a PCIBusClass method, (continued)
- [Qemu-ppc] [Qemu-devel] [PATCH v5 for-2.3 15/28] hw/pci: made pci_bus_is_root a PCIBusClass method, Marcel Apfelbaum, 2015/03/10
- [Qemu-ppc] [Qemu-devel] [PATCH v5 for-2.3 13/28] hw/acpi: remove from root bus 0 the crs resources used by other busses., Marcel Apfelbaum, 2015/03/10
- [Qemu-ppc] [Qemu-devel] [PATCH v5 for-2.3 14/28] hw/pci: move pci bus related code to separate files, Marcel Apfelbaum, 2015/03/10
- [Qemu-ppc] [Qemu-devel] [PATCH v5 for-2.3 19/28] hw/pci: implement iteration over multiple host bridges, Marcel Apfelbaum, 2015/03/10
- [Qemu-ppc] [Qemu-devel] [PATCH v5 for-2.3 16/28] hw/pci: made pci_bus_num a PCIBusClass method, Marcel Apfelbaum, 2015/03/10
- [Qemu-ppc] [Qemu-devel] [PATCH v5 for-2.3 18/28] hw/pci: removed 'rootbus nr is 0' assumption from qmp_pci_query, Marcel Apfelbaum, 2015/03/10
- [Qemu-ppc] [Qemu-devel] [PATCH v5 for-2.3 17/28] hw/pci: introduce TYPE_PCI_MAIN_HOST_BRIDGE interface, Marcel Apfelbaum, 2015/03/10
- [Qemu-ppc] [Qemu-devel] [PATCH v5 for-2.3 20/28] hw/pci: introduce PCI Expander Bridge (PXB), Marcel Apfelbaum, 2015/03/10
- [Qemu-ppc] [Qemu-devel] [PATCH v5 for-2.3 21/28] hw/pci: inform bios if the system has more than one pci bridge, Marcel Apfelbaum, 2015/03/10
- Re: [Qemu-ppc] [Qemu-devel] [PATCH v5 for-2.3 21/28] hw/pci: inform bios if the system has more than one pci bridge,
Michael S. Tsirkin <=
- [Qemu-ppc] [Qemu-devel] [PATCH v5 for-2.3 22/28] hw/pci: piix - suport multiple host bridges, Marcel Apfelbaum, 2015/03/10
- [Qemu-ppc] [Qemu-devel] [PATCH v5 for-2.3 24/28] hw/pci_bus: add support for NUMA nodes, Marcel Apfelbaum, 2015/03/10
- [Qemu-ppc] [Qemu-devel] [PATCH v5 for-2.3 26/28] acpi: restrict the aml emission to PXB host bridges, Marcel Apfelbaum, 2015/03/10
- [Qemu-ppc] [Qemu-devel] [PATCH v5 for-2.3 27/28] apci: fix PXB behaviour if used with unsupported BIOS, Marcel Apfelbaum, 2015/03/10