qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] spapr/xive: use SPAPR_IRQ_IPI to define IPI ranges exposed t


From: Greg Kurz
Subject: Re: [PATCH] spapr/xive: use SPAPR_IRQ_IPI to define IPI ranges exposed to the guest
Date: Fri, 6 Mar 2020 16:16:37 +0100

On Fri,  6 Mar 2020 13:33:07 +0100
Cédric Le Goater <address@hidden> wrote:

> 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 <address@hidden>
> ---

Reviewed-by: Greg Kurz <address@hidden>

>  hw/intc/spapr_xive.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/intc/spapr_xive.c b/hw/intc/spapr_xive.c
> index 20c8155557d6..6608d7220a47 100644
> --- a/hw/intc/spapr_xive.c
> +++ b/hw/intc/spapr_xive.c
> @@ -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,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]