[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH v3 2/5] xics: add reset() handler to ICPStateClass
From: |
David Gibson |
Subject: |
Re: [Qemu-ppc] [PATCH v3 2/5] xics: add reset() handler to ICPStateClass |
Date: |
Thu, 8 Jun 2017 11:44:45 +1000 |
User-agent: |
Mutt/1.8.0 (2017-02-23) |
On Wed, Jun 07, 2017 at 07:47:04PM +0200, Cédric Le Goater wrote:
1;4602;0c> On 06/07/2017 07:17 PM, Greg Kurz wrote:
> > Taking into account that qemu_set_irq() returns immediatly if its first
> > argument is NULL, icp_kvm_reset() largely duplicates icp_reset().
> >
> > This patch introduces a reset() handler, so that the common logic can
> > be implemented in icp_reset() only.
> >
> > While there we can also drop icp_kvm_realize() and icp_kvm_unrealize(). This
> > causes icp-kvm to be realized in icp_realize(), which sets icp->xics, but
> > it has no impact.
> >
> > Signed-off-by: Greg Kurz <address@hidden>
>
>
> Reviewed-by: Cédric Le Goater <address@hidden>
>
> > ---
> > hw/intc/xics.c | 5 +++++
> > hw/intc/xics_kvm.c | 27 ++-------------------------
> > include/hw/ppc/xics.h | 1 +
> > 3 files changed, 8 insertions(+), 25 deletions(-)
>
> another good cleanup !
I concur. Applied to ppc-for-2.10.
--
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 v3 0/5] spapr/xics: fix migration of older machine types, Greg Kurz, 2017/06/07
- [Qemu-ppc] [PATCH v3 1/5] pnv_core: drop reference on ICPState object during CPU realization, Greg Kurz, 2017/06/07
- [Qemu-ppc] [PATCH v3 2/5] xics: add reset() handler to ICPStateClass, Greg Kurz, 2017/06/07
- [Qemu-ppc] [PATCH v3 3/5] xics: setup cpu at realize time, Greg Kurz, 2017/06/07
- Re: [Qemu-ppc] [PATCH v3 3/5] xics: setup cpu at realize time, Cédric Le Goater, 2017/06/07
- Re: [Qemu-ppc] [PATCH v3 3/5] xics: setup cpu at realize time, Greg Kurz, 2017/06/07
- Re: [Qemu-ppc] [PATCH v3 3/5] xics: setup cpu at realize time, David Gibson, 2017/06/07
- Re: [Qemu-ppc] [PATCH v3 3/5] xics: setup cpu at realize time, Greg Kurz, 2017/06/08
- Re: [Qemu-ppc] [PATCH v3 3/5] xics: setup cpu at realize time, Cédric Le Goater, 2017/06/08
- Re: [Qemu-ppc] [PATCH v3 3/5] xics: setup cpu at realize time, Greg Kurz, 2017/06/08
- Re: [Qemu-ppc] [PATCH v3 3/5] xics: setup cpu at realize time, Cédric Le Goater, 2017/06/08
- Re: [Qemu-ppc] [PATCH v3 3/5] xics: setup cpu at realize time, Greg Kurz, 2017/06/08
Re: [Qemu-ppc] [PATCH v3 3/5] xics: setup cpu at realize time, David Gibson, 2017/06/07