hw/pci: removed 'rootbus nr is 0' assumption from qmp_pci_query
commitcb2ed8b3c66284f226c523231e2c09e60bbb34bb
authorMarcel Apfelbaum <marcel.a@redhat.com>
Tue, 2 Jun 2015 11:23:05 +0000 (2 14:23 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 3 Jun 2015 16:19:17 +0000 (3 18:19 +0200)
treee2670b51fc4735df43b3d4b190cade2fa26d7766
parentdcdca29655f774568f30a82b7fe0190b4bd38802
hw/pci: removed 'rootbus nr is 0' assumption from qmp_pci_query

Use the newer pci_bus_num to correctly get the root bus number.

Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
hw/pci/pci.c