HomeFreeBSD

xen/intr: cleanup event channel number use

Description

xen/intr: cleanup event channel number use

Consistently use ~0 instead of 0 when clearing xenisrc structures.
0 is a valid event channel number, even though it is reserved by Xen.
Whereas ~0 is guaranteed invalid.

Reviewed by: royger
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D30743

Details

Provenance
ehem_freebsd_m5p.comAuthored on Jun 6 2021, 12:43 AM
roygerCommitted on Mar 29 2023, 7:51 AM
Reviewer
royger
Differential Revision
D30743: xen/intr: rework handling of event channel numbers in xen_intr.c
Parents
rG2b2415bafa0d: xen/intr: fix corruption of event channel table
Branches
Unknown
Tags
Unknown