[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] s390x: adapter routes error handling
From: |
Cornelia Huck |
Subject: |
Re: [PATCH v2] s390x: adapter routes error handling |
Date: |
Fri, 17 Jan 2020 14:15:33 +0100 |
On Fri, 17 Jan 2020 12:11:47 +0100
Cornelia Huck <address@hidden> wrote:
> If the kernel irqchip has been disabled, we don't want the
> {add,release}_adapter_routes routines to call any kvm_irqchip_*
> interfaces, as they may rely on an irqchip actually having been
> created. Just take a quick exit in that case instead.
>
> Also initialize routes->gsi[] with -1 in the virtio-ccw handling,
> to make sure we don't trip over other errors, either. (Nobody
> else uses the gsi array in that structure.)
>
> Fixes: d426d9fba8ea ("s390x/virtio-ccw: wire up irq routing and irqfds")
> Signed-off-by: Cornelia Huck <address@hidden>
> ---
>
> v1->v2:
> - also initialize the gsi array with -1
>
> ---
> hw/intc/s390_flic_kvm.c | 8 ++++++++
> hw/s390x/virtio-ccw.c | 4 ++++
> 2 files changed, 12 insertions(+)
Queued (with amended commit message) to s390-next.