|
@@ -41,7 +41,6 @@
|
|
|
#include "qemu/cutils.h"
|
|
|
#include "qapi/error.h"
|
|
|
#include "hw/acpi/aml-build.h"
|
|
|
-#include "hw/pci/pci_bus.h"
|
|
|
#include "hw/loader.h"
|
|
|
|
|
|
#define FW_CFG_FILE_SLOTS_DFLT 0x20
|
|
@@ -1058,28 +1057,6 @@ bool fw_cfg_add_file_from_generator(FWCfgState *s,
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
-void fw_cfg_add_extra_pci_roots(PCIBus *bus, FWCfgState *s)
|
|
|
-{
|
|
|
- int extra_hosts = 0;
|
|
|
-
|
|
|
- if (!bus) {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- QLIST_FOREACH(bus, &bus->child, sibling) {
|
|
|
- /* look for expander root buses */
|
|
|
- if (pci_bus_is_root(bus)) {
|
|
|
- extra_hosts++;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- if (extra_hosts && s) {
|
|
|
- uint64_t *val = g_malloc(sizeof(*val));
|
|
|
- *val = cpu_to_le64(extra_hosts);
|
|
|
- fw_cfg_add_file(s, "etc/extra-pci-roots", val, sizeof(*val));
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
static void fw_cfg_machine_reset(void *opaque)
|
|
|
{
|
|
|
MachineClass *mc = MACHINE_GET_CLASS(qdev_get_machine());
|