[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [for-2.12 6/7] pci: Eliminate redundant PCIDevice::bus
From: |
Peter Xu |
Subject: |
Re: [Qemu-devel] [for-2.12 6/7] pci: Eliminate redundant PCIDevice::bus pointer |
Date: |
Thu, 30 Nov 2017 14:31:31 +0800 |
User-agent: |
Mutt/1.9.1 (2017-09-22) |
On Wed, Nov 29, 2017 at 07:46:27PM +1100, David Gibson wrote:
> The bus pointer in PCIDevice is basically redundant with QOM information.
> It's always initialized to the qdev_get_parent_bus(), the only difference
> is the type.
>
> Therefore this patch eliminates the field, instead creating a pci_get_bus()
> helper to do the type mangling to derive it conveniently from the QOM
> Device object underneath.
>
> Signed-off-by: David Gibson <address@hidden>
Reviewed-by: Peter Xu <address@hidden>
--
Peter Xu