diff options
author | Cédric Le Goater | 2017-12-01 17:06:02 +0100 |
---|---|---|
committer | David Gibson | 2017-12-14 23:49:24 +0100 |
commit | 60c6823b9bce6789f1ad95bca233fc490161b279 (patch) | |
tree | f821e3ae7b19a978198ebf3f8247d79445be44c9 /hw/ppc/trace-events | |
parent | ppc/xics: assign of the CPU 'intc' pointer under the core (diff) | |
download | qemu-60c6823b9bce6789f1ad95bca233fc490161b279.tar.gz qemu-60c6823b9bce6789f1ad95bca233fc490161b279.tar.xz qemu-60c6823b9bce6789f1ad95bca233fc490161b279.zip |
spapr: move the IRQ allocation routines under the machine
Also change the prototype to use a sPAPRMachineState and prefix them
with spapr_irq_. It will let us synchronise the IRQ allocation with
the XIVE interrupt mode when available.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ppc/trace-events')
-rw-r--r-- | hw/ppc/trace-events | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/ppc/trace-events b/hw/ppc/trace-events index 4a6a6490fa..b7c3e64b5e 100644 --- a/hw/ppc/trace-events +++ b/hw/ppc/trace-events @@ -12,6 +12,10 @@ spapr_pci_msi_retry(unsigned config_addr, unsigned req_num, unsigned max_irqs) " # hw/ppc/spapr.c spapr_cas_failed(unsigned long n) "DT diff buffer is too small: %ld bytes" spapr_cas_continue(unsigned long n) "Copy changes to the guest: %ld bytes" +spapr_irq_alloc(int irq) "irq %d" +spapr_irq_alloc_block(int first, int num, bool lsi, int align) "first irq %d, %d irqs, lsi=%d, alignnum %d" +spapr_irq_free(int src, int irq, int num) "Source#%d, first irq %d, %d irqs" +spapr_irq_free_warn(int src, int irq) "Source#%d, irq %d is already free" # hw/ppc/spapr_hcall.c spapr_cas_pvr_try(uint32_t pvr) "0x%x" |