[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH v3 5/8] xics: split to xics and xics-common
From: |
Alexander Graf |
Subject: |
Re: [Qemu-ppc] [PATCH v3 5/8] xics: split to xics and xics-common |
Date: |
Mon, 26 Aug 2013 15:40:09 +0200 |
On 19.08.2013, at 07:55, Alexey Kardashevskiy wrote:
> The upcoming XICS-KVM support will use bits of emulated XICS code.
> So this introduces new level of hierarchy - "xics-common" class. Both
> emulated XICS and XICS-KVM will inherit from it and override class
> callbacks when required.
>
> The new "xics-common" class implements:
> 1. replaces static "nr_irqs" and "nr_servers" properties with
> the dynamic ones and adds callbacks to be executed when properties
> are set.
> 2. xics_cpu_setup() callback renamed to xics_common_cpu_setup() as
> it is a common part for both XICS'es
> 3. xics_reset() renamed to xics_common_reset() for the same reason.
>
> The emulated XICS changes:
> 1. the part of xics_realize() which creates ICPs is moved to
> the "nr_servers" property callback as realize() is too late to
> create/initialize devices and instance_init() is too early to create
> devices as the number of child devices comes via the "nr_servers"
> property.
> 2. added ics_initfn() which does a little part of what xics_realize() did.
>
> Signed-off-by: Alexey Kardashevskiy <address@hidden>
Reviewed-by: Alexander Graf <address@hidden>
Alex
- Re: [Qemu-ppc] [Qemu-devel] [PATCH v3 2/8] xics: add pre_save/post_load/cpu_setup dispatchers, (continued)
Re: [Qemu-ppc] [PATCH v3 2/8] xics: add pre_save/post_load/cpu_setup dispatchers, Alexander Graf, 2013/08/26
[Qemu-ppc] [PATCH v3 3/8] xics: move registration of global state to realize(), Alexey Kardashevskiy, 2013/08/19
[Qemu-ppc] [PATCH v3 4/8] xics: minor changes and cleanups, Alexey Kardashevskiy, 2013/08/19
[Qemu-ppc] [PATCH v3 5/8] xics: split to xics and xics-common, Alexey Kardashevskiy, 2013/08/19
- Re: [Qemu-ppc] [PATCH v3 5/8] xics: split to xics and xics-common,
Alexander Graf <=
[Qemu-ppc] [PATCH v3 6/8] xics-kvm: Support for in-kernel XICS interrupt controller, Alexey Kardashevskiy, 2013/08/19
Re: [Qemu-ppc] [Qemu-devel] [PATCH v3 0/8] xics: reworks and in-kernel support, Andreas Färber, 2013/08/23
[Qemu-ppc] [PATCH v3] xics: Add H_IPOLL implementation, Alexey Kardashevskiy, 2013/08/23
[Qemu-ppc] [PATCH v3] xics: Implement H_XIRR_X, Alexey Kardashevskiy, 2013/08/23