Revision af0669f0 hw/pci.c

b/hw/pci.c
2014 2014
    char path[16];
2015 2015

  
2016 2016
    snprintf(path, sizeof(path), "%04x:%02x:%02x.%x",
2017
             pci_find_domain(d->bus), d->config[PCI_SECONDARY_BUS],
2017
             pci_find_domain(d->bus),
2018
             0 /* TODO: need a persistent path for nested buses.
2019
                * Note: pci_bus_num(d->bus) is not right as it's guest
2020
                * assigned. */,
2018 2021
             PCI_SLOT(d->devfn), PCI_FUNC(d->devfn));
2019 2022

  
2020 2023
    return strdup(path);

Also available in: Unified diff