Page MenuHomeFreeBSD

xen/intr: move isrc allocation to architecture (aarch64 version)
Needs ReviewPublic

Authored by on Jul 5 2021, 6:41 PM.
Referenced Files
Unknown Object (File)
Sat, May 11, 12:06 AM
Unknown Object (File)
Tue, Apr 30, 6:53 PM
Unknown Object (File)
Apr 19 2024, 4:17 PM
Unknown Object (File)
Feb 18 2024, 8:23 AM
Unknown Object (File)
Jan 15 2024, 2:14 PM
Unknown Object (File)
Dec 30 2023, 9:39 AM
Unknown Object (File)
Dec 20 2023, 6:36 AM
Unknown Object (File)
Dec 10 2023, 9:55 AM



The isrc allocation has been moved to architecture code where
the decision to allocate or not can be made.

This means setting of several fields needs to be handled by architecture
code. Modify the prototype of xen_arch_intr_alloc(), start passing the
variables needed, and finally set them on aarch64.

This also means releasing of isrcs also needs to be moved to
architecture code.

Diff Detail

rS FreeBSD src repository - subversion
Lint Passed
No Test Coverage
Build Status
Buildable 40321
Build 37210: arc lint + arc unit

Event Timeline

A fair bit of work has gone into figuring out the prototype for xen_arch_intr_alloc().

The child device name was added on the principle it could be used as part of the printf-format argument for intr_event_create() or intr_isrc_register(). I'm now suspect that may be incorrect, in which case "name" could be removed.

Originally it looked like M_XENINTR should remain part of xen_intr.c, but the allocation needed to move to architecture. The reason was the PVHv1 code still needed to do an allocation. With that allocation removed, it could be possible to move M_XENINTR to architecture, at which point neither xen_arch_intr_alloc() nor xen_arch_intr_release() would need the mtype argument.