public inbox for virtio-comment@lists.linux.dev
 help / color / mirror / Atom feed
* virtio-PCI interrupt corner cases
@ 2026-04-05 19:35 Demi Marie Obenour
  2026-04-05 20:24 ` Michael S. Tsirkin
  0 siblings, 1 reply; 4+ messages in thread
From: Demi Marie Obenour @ 2026-04-05 19:35 UTC (permalink / raw)
  To: virtio-comment@lists.linux.dev


[-- Attachment #1.1.1: Type: text/plain, Size: 1198 bytes --]

There are several corner cases in virtio-PCI interrupt handling.
I'm trying to figure out what the expected behavior is in these cases,
as the spec isn't clear.

1. Suppose virtqueue 0 is mapped to MSI-X vector 5.  The device
   triggers an interrupt on virtqueue 0.  Vector 5 is currently masked,
   so the interrupt becomes pending.  The driver then map virtqueue
   0 to vector 6 and this succeeds.

   a. Is there still have an interrupt pending on vector 5?
   b. If vector 6 is unmasked, is an interrupt delivered immediately?
   c. If vector 6 is masked, does it become pending?

2. Suppose virtqueue 1 is mapped to MSI-X vector 7.  The device
   triggers an interrupt on virtqueue 1.  Vector 7 is currently masked,
   so the interrupt becomes pending.  The driver then maps virtqueue 1
   to NO_VECTOR.

   Is there still an interrupt pending on vector 7, or is the interrupt
   lost?

3. Suppose both virtqueues 3 and 4 are mapped to MSI-X vector 3.
   The device triggers interrupts on both virtqueues.  Does the driver
   receive one interrupt or two?

I don't have access to the PCI specification (paywall).
-- 
Sincerely,
Demi Marie Obenour (she/her/hers)

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 7253 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-04-05 20:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-05 19:35 virtio-PCI interrupt corner cases Demi Marie Obenour
2026-04-05 20:24 ` Michael S. Tsirkin
2026-04-05 20:34   ` Demi Marie Obenour
2026-04-05 20:43     ` Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox