Skip to content

feat(virtio): setup virtio interrupts#506

Merged
veqcc merged 1 commit intomainfrom
feat/virtio_irq
Jun 17, 2025
Merged

feat(virtio): setup virtio interrupts#506
veqcc merged 1 commit intomainfrom
feat/virtio_irq

Conversation

@veqcc
Copy link
Copy Markdown
Contributor

@veqcc veqcc commented Jun 16, 2025

Description

Implemented MSI-X interrupt setup.
Currently, Tx and Rx queues are mapped to the same IRQ.

Related links

OpenBSD vio_attach
https://github.com/openbsd/src/blob/dbfe616afedbcf350a52a7dbd790171565c2cee4/sys/dev/pv/if_vio.c#L804-L830

OpenBSD interrupts
https://github.com/openbsd/src/blob/dbfe616afedbcf350a52a7dbd790171565c2cee4/sys/dev/pv/if_vio.c#L901-L925

OpenBSD virtio_pci_msix_establish
https://github.com/openbsd/src/blob/dbfe616afedbcf350a52a7dbd790171565c2cee4/sys/dev/pci/virtio_pci.c#L972

How was this PR tested?

#465

Notes for reviewers

  • MSI and legacy interrupts configuration will be implemented later
  • interrupt handlers for each IRQType will be implemented later
  • support for multiple queues may be implemented later

Signed-off-by: Ryuta Kambe <ryuta.kambe@tier4.jp>
@veqcc veqcc requested review from Koichi98 and ytakano June 16, 2025 09:30
@veqcc veqcc self-assigned this Jun 16, 2025
@veqcc veqcc merged commit 25b00c5 into main Jun 17, 2025
1 check passed
@veqcc veqcc deleted the feat/virtio_irq branch June 17, 2025 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants