[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH 2/5] spapr: Uniform DRC reset paths
From: |
David Gibson |
Subject: |
Re: [Qemu-ppc] [PATCH 2/5] spapr: Uniform DRC reset paths |
Date: |
Wed, 21 Jun 2017 16:15:07 +0800 |
User-agent: |
Mutt/1.8.0 (2017-02-23) |
On Tue, Jun 20, 2017 at 06:32:49PM +0200, Greg Kurz wrote:
> On Tue, 20 Jun 2017 09:53:29 +0800
> David Gibson <address@hidden> wrote:
>
> > DRC objects have a regular device reset method. However, it only gets
> > called in the usual way for PCI DRCs. Because of where CPU and LMB DRCs
> > are in the QOM tree, their device reset method isn't automatically called.
> > So, the machine manually registers reset handlers to call device_reset().
> >
> > This patch removes the device reset method, and instead always explicitly
> > registers the reset handler from realize(). This means the callers don't
> > have to worry about the two cases, and we always get proper resets.
> >
> > Signed-off-by: David Gibson <address@hidden>
> > ---
>
> This indeed simplifies the code. It also has the interesting effect that
> nobody cares for the return value of spapr_dr_connector_new()
> anymore.
True. I think I'll leave it there for now, though, since *_new()
functions generally return the object they created.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature
- [Qemu-ppc] [PATCH 0/5] spapr: DRC cleanups (part V), David Gibson, 2017/06/19
- [Qemu-ppc] [PATCH 1/5] spapr: Leave DR-indicator management to the guest, David Gibson, 2017/06/19
- [Qemu-ppc] [PATCH 4/5] spapr: Remove unnecessary differences between hotplug and coldplug paths, David Gibson, 2017/06/19
- [Qemu-ppc] [PATCH 2/5] spapr: Uniform DRC reset paths, David Gibson, 2017/06/19
- [Qemu-ppc] [PATCH 5/5] spapr: Use unplug_request for PCI hot unplug, David Gibson, 2017/06/19
- [Qemu-ppc] [PATCH 3/5] spapr: Add DRC release method, David Gibson, 2017/06/19
- Re: [Qemu-ppc] [PATCH 3/5] spapr: Add DRC release method, Laurent Vivier, 2017/06/20