b45ff2d9 | 26-Sep-2013 |
Alexey Kardashevskiy <aik@ozlabs.ru> |
xics: convert init() to realize()
This fixes XICS according new QOM rules.
This converts ICS's init() callbacks to realize().
This converts legacy qdev_init_nofail() to property_set(realized).
Si
xics: convert init() to realize()
This fixes XICS according new QOM rules.
This converts ICS's init() callbacks to realize().
This converts legacy qdev_init_nofail() to property_set(realized).
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
d1b5682d | 26-Sep-2013 |
Alexey Kardashevskiy <aik@ozlabs.ru> |
xics: add pre_save/post_load dispatchers
The upcoming support of in-kernel XICS will redefine migration callbacks for both ICS and ICP so classes and callback pointers are added.
Signed-off-by: Ale
xics: add pre_save/post_load dispatchers
The upcoming support of in-kernel XICS will redefine migration callbacks for both ICS and ICP so classes and callback pointers are added.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
9ccff2a4 | 26-Sep-2013 |
Alexey Kardashevskiy <aik@ozlabs.ru> |
xics: replace fprintf with error_report
This replaces old-style fprintf with new style error_report.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: Andreas Färber <afaerber@suse.d
xics: replace fprintf with error_report
This replaces old-style fprintf with new style error_report.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: Andreas Färber <afaerber@suse.de> Acked-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
8ffe04ed | 26-Sep-2013 |
Alexey Kardashevskiy <aik@ozlabs.ru> |
xics: move reset and cpu_setup
This simple change makes following patches nicer.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Acked-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-
xics: move reset and cpu_setup
This simple change makes following patches nicer.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Acked-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
5cff81f0 | 03-Sep-2013 |
Anthony Liguori <anthony@codemonkey.ws> |
Merge remote-tracking branch 'afaerber/tags/qom-devices-for-anthony' into staging
QOM device refactorings
* Fix QOM and ISA documentation errors * Extend object_initialize() et al. to check the ins
Merge remote-tracking branch 'afaerber/tags/qom-devices-for-anthony' into staging
QOM device refactorings
* Fix QOM and ISA documentation errors * Extend object_initialize() et al. to check the instance size
# gpg: Signature made Fri 30 Aug 2013 02:19:48 PM CDT using RSA key ID 3E7E013F # gpg: Can't check signature: public key not found
# By Andreas Färber (14) and others # Via Andreas Färber * afaerber/tags/qom-devices-for-anthony: isa: Fix documentation of isa_register_portio_list() qom: Assert instance size in object_initialize_with_type() qom: Pass available size to object_initialize() qdev: Pass size to qbus_create_inplace() virtio-mmio: Pass size to virtio_mmio_bus_new() virtio-ccw: Pass size to virtio_ccw_bus_new() s390-virtio-bus: Pass size to virtio_s390_bus_new() virtio-pci: Pass size to virtio_pci_bus_new() usb: Pass size to usb_bus_new() scsi: Pass size to scsi_bus_new() pci: Pass size to pci_bus_new_inplace() ide: Pass size to ide_bus_new() ipack: Pass size to ipack_bus_new_inplace() intel-hda: Pass size to hda_codec_bus_init() qom: Fix object_initialize_with_type() argument name in documentation virtio: Remove unnecessary OBJECT() casts object: Fix typo in qom/object.h
show more ...
|
33a0e5d8 | 19-Aug-2013 |
Alexey Kardashevskiy <aik@ozlabs.ru> |
xics: move registration of global state to realize()
Registration of global state belongs into realize so move it there.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: Andreas Fär
xics: move registration of global state to realize()
Registration of global state belongs into realize so move it there.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
213f0c4f | 23-Aug-2013 |
Andreas Färber <afaerber@suse.de> |
qom: Pass available size to object_initialize()
To be passed on to object_initialize_with_type().
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> (virtio-ccw) Signed-off-by: Andreas Färber <afae
qom: Pass available size to object_initialize()
To be passed on to object_initialize_with_type().
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> (virtio-ccw) Signed-off-by: Andreas Färber <afaerber@suse.de>
show more ...
|
bc72ad67 | 21-Aug-2013 |
Alex Bligh <alex@alex.org.uk> |
aio / timers: Switch entire codebase to the new timer API
This is an autogenerated patch using scripts/switch-timer-api.
Switch the entire code base to using the new timer API.
Note this patch may
aio / timers: Switch entire codebase to the new timer API
This is an autogenerated patch using scripts/switch-timer-api.
Switch the entire code base to using the new timer API.
Note this patch may introduce some line length issues.
Signed-off-by: Alex Bligh <alex@alex.org.uk> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
show more ...
|
f54d3157 | 27-Jul-2013 |
Andreas Färber <afaerber@suse.de> |
ioapic: QOM cast cleanup
Signed-off-by: Andreas Färber <afaerber@suse.de> |
cc3e064e | 26-Jul-2013 |
Andreas Färber <afaerber@suse.de> |
xilinx_intc: QOM cast cleanup
Signed-off-by: Andreas Färber <afaerber@suse.de> |
7abad863 | 26-Jul-2013 |
Andreas Färber <afaerber@suse.de> |
slavio_intctl: QOM cast cleanup
Signed-off-by: Andreas Färber <afaerber@suse.de> |
b09a6f7b | 26-Jul-2013 |
Andreas Färber <afaerber@suse.de> |
realview_gic: QOM cast cleanup
Signed-off-by: Andreas Färber <afaerber@suse.de> |
1ecdf402 | 26-Jul-2013 |
Andreas Färber <afaerber@suse.de> |
puv3_intc: QOM cast cleanup
Signed-off-by: Andreas Färber <afaerber@suse.de> |
7fc3266f | 26-Jul-2013 |
Andreas Färber <afaerber@suse.de> |
pl190: QOM cast cleanup
Signed-off-by: Andreas Färber <afaerber@suse.de> |
aefbc256 | 26-Jul-2013 |
Andreas Färber <afaerber@suse.de> |
pl190: Rename pl190_state to PL190State
Signed-off-by: Andreas Färber <afaerber@suse.de> |
47edc5a4 | 26-Jul-2013 |
Andreas Färber <afaerber@suse.de> |
omap_intc: QOM'ify omap-intc and omap2-intc
Create a new abstract base type and let omap-intc and omap2-intc inherit from it. Introduce a type constant and use QOM casts.
Signed-off-by: Andreas Fär
omap_intc: QOM'ify omap-intc and omap2-intc
Create a new abstract base type and let omap-intc and omap2-intc inherit from it. Introduce a type constant and use QOM casts.
Signed-off-by: Andreas Färber <afaerber@suse.de>
show more ...
|
1f8a9eac | 26-Jul-2013 |
Andreas Färber <afaerber@suse.de> |
lm32_pic: QOM cast cleanup
Signed-off-by: Andreas Färber <afaerber@suse.de> |
730bf932 | 26-Jul-2013 |
Andreas Färber <afaerber@suse.de> |
grlib_irqmp: QOM cast cleanup
Signed-off-by: Andreas Färber <afaerber@suse.de> |
c5e22ae3 | 26-Jul-2013 |
Andreas Färber <afaerber@suse.de> |
exynos4210_gic: QOM cast cleanup for exynos4210.irq_gate
Signed-off-by: Andreas Färber <afaerber@suse.de> |
78c6abbd | 26-Jul-2013 |
Andreas Färber <afaerber@suse.de> |
exynos4210_gic: QOM cast cleanup for exynos4210.gic
Signed-off-by: Andreas Färber <afaerber@suse.de> |
c03c6b9c | 26-Jul-2013 |
Andreas Färber <afaerber@suse.de> |
exynos4210_combiner: QOM cast cleanup
Signed-off-by: Andreas Färber <afaerber@suse.de> |
9062143f | 26-Jul-2013 |
Andreas Färber <afaerber@suse.de> |
etraxfs_pic: QOM cast cleanup
Signed-off-by: Andreas Färber <afaerber@suse.de> |
285b4432 | 26-Jul-2013 |
Andreas Färber <afaerber@suse.de> |
arm_gic: QOM cast cleanup
Signed-off-by: Andreas Färber <afaerber@suse.de> |
5ff94a61 | 26-Jul-2013 |
Andreas Färber <afaerber@suse.de> |
imx_avic: QOM cast cleanup
Introduce type constant, use QOM casts and prepare SysBus initfn for QOM realize by resolving SysBusDevice vs. DeviceState "dev" name conflict.
Acked-by: Peter Chubb <pet
imx_avic: QOM cast cleanup
Introduce type constant, use QOM casts and prepare SysBus initfn for QOM realize by resolving SysBusDevice vs. DeviceState "dev" name conflict.
Acked-by: Peter Chubb <peter.chubb@nicta.com.au> Signed-off-by: Andreas Färber <afaerber@suse.de>
show more ...
|
c04d6cfa | 18-Jul-2013 |
Anthony Liguori <aliguori@us.ibm.com> |
xics: rename types to be sane and follow coding style
Basically, in HW the layout of the interrupt network is:
- One ICP per processor thread (the "presenter"). This contains the regis
xics: rename types to be sane and follow coding style
Basically, in HW the layout of the interrupt network is:
- One ICP per processor thread (the "presenter"). This contains the registers to fetch a pending interrupt (ack), EOI, and control the processor priority.
- One ICS per logical source of interrupts (ie, one per PCI host bridge, and a few others here or there). This contains the per-interrupt source configuration (target processor(s), priority, mask) and the per-interrupt internal state.
Under PAPR, there is a single "virtual" ICS ... somewhat (it's a bit oddball what pHyp does here, arguably there are two but we can ignore that distinction). There is no register level access. A pair of firmware (RTAS) calls is used to configure each virtual interrupt.
So our model here is somewhat the same. We have one ICS in the emulated XICS which arguably *is* the emulated XICS, there's no point making it a separate "device", that would just be gross, and each VCPU has an associated ICP.
Yet we call the "XICS" struct icp_state and then the ICPs 'struct icp_server_state'. It's particularly confusing when all of the functions have xics_prefixes yet take *icp arguments.
Rename:
struct icp_state -> XICSState struct icp_server_state -> ICPState struct ics_state -> ICSState struct ics_irq_state -> ICSIRQState
Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Message-id: 1374175984-8930-12-git-send-email-aliguori@us.ibm.com [aik: added ics_resend() on post_load] Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|