commit | ce6a28ee057da3e4a587dada369e33a8486b0066 | [log] [tgz] |
---|---|---|
author | Marcel Apfelbaum <marcel.a@redhat.com> | Tue Jun 02 14:22:57 2015 +0300 |
committer | Michael S. Tsirkin <mst@redhat.com> | Wed Jun 03 18:19:16 2015 +0200 |
tree | 8d4249367a98b19293781c4b726596f230172ced | |
parent | 32d9ca15bac63e8a7bad6dc1a4ab624e6d6d3b0f [diff] |
hw/pci: made pci_bus_is_root a PCIBusClass method Refactoring it as a method of PCIBusClass will allow different implementations for subclasses. Removed the assumption that the root bus does not have a parent device because is specific only to the default class implementation. 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>