diff options
author | Juan Quintela <quintela@redhat.com> | 2009-12-02 12:36:44 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-03 10:04:55 -0600 |
commit | 5084bca17f9d2b0a39337df4bd991838ed70d866 (patch) | |
tree | fcd2c84e25da26281b1a677235fd42bcebc69507 /hw | |
parent | 33599e2a6164b1c7a5b634be1c2e54b8f0fb91bd (diff) |
pci: vmstate_register() already assign consecutive numbers starting at 0
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/pci.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -161,8 +161,6 @@ PCIBus *pci_find_root_bus(int domain) void pci_bus_new_inplace(PCIBus *bus, DeviceState *parent, const char *name, int devfn_min) { - static int nbus = 0; - qbus_create_inplace(&bus->qbus, &pci_bus_info, parent, name); bus->devfn_min = devfn_min; @@ -170,7 +168,7 @@ void pci_bus_new_inplace(PCIBus *bus, DeviceState *parent, QLIST_INIT(&bus->child); pci_host_bus_register(0, bus); /* for now only pci domain 0 is supported */ - vmstate_register(nbus++, &vmstate_pcibus, bus); + vmstate_register(-1, &vmstate_pcibus, bus); qemu_register_reset(pci_bus_reset, bus); } |