spapr/xive: use SPAPR_IRQ_IPI to define IPI ranges exposed to the guest
The "ibm,xive-lisn-ranges" defines ranges of interrupt numbers that the guest can use to configure IPIs. It starts at 0 today but it could change to some other offset. Make clear which IRQ range we are exposing by using SPAPR_IRQ_IPI in the property definition. Signed-off-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20200306123307.1348-1-clg@kaod.org> Reviewed-by: Greg Kurz <groug@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
a7017b2037
commit
52d3403d1e
@ -677,8 +677,8 @@ static void spapr_xive_dt(SpaprInterruptController *intc, uint32_t nr_servers,
|
||||
uint64_t timas[2 * 2];
|
||||
/* Interrupt number ranges for the IPIs */
|
||||
uint32_t lisn_ranges[] = {
|
||||
cpu_to_be32(0),
|
||||
cpu_to_be32(nr_servers),
|
||||
cpu_to_be32(SPAPR_IRQ_IPI),
|
||||
cpu_to_be32(SPAPR_IRQ_IPI + nr_servers),
|
||||
};
|
||||
/*
|
||||
* EQ size - the sizes of pages supported by the system 4K, 64K,
|
||||
|
Loading…
Reference in New Issue
Block a user