HomeFreeBSD

xen/x86: rework isrc allocation to use list instead of table scanning

Description

xen/x86: rework isrc allocation to use list instead of table scanning

Scanning the list of interrupts to find an unused entry is rather
inefficient. Instead overlay a free list structure and use a list
instead.

This also has the useful effect of removing the last use of evtchn_type
values outside of xen_intr.c.

Reviewed by: royger
[royger]

  • Make avail_list static.

Details

Provenance
ehem_freebsd_m5p.comAuthored on Oct 13 2021, 11:13 PM
roygerCommitted on Apr 14 2023, 1:58 PM
Parents
rGd32d65276b20: xen/intr: move evtchn_type to intr-internal.h
Branches
Unknown
Tags
Unknown