Virtio interrupt remapping

From: Demi Marie Obenour
Date: Fri Jun 13 2025 - 13:08:27 EST


I’m working on virtio-IOMMU interrupt remapping for Spectrum OS [1],
and am running into a problem. All of the current interrupt remapping
drivers use __init code during initialization, and I’m not sure how to
plumb the struct virtio_device * into the IOMMU initialization code.

What is the proper way to do this, where “proper” means that it doesn’t
do something disgusting like “stuff the virtio device in a global
variable”?
--
Sincerely,
Demi Marie Obenour (she/her/hers)

Attachment: OpenPGP_0xB288B55FFF9C22C1.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature