Skip to contentSkip to conversation

Asymptotic complexity of enabling and disabling MSI-X interrupts

DISCUSSION Demi Marie Obenour 1 participant 1 message Apr 6

lore
Share & tools
lore
#0 lore raw

Is it okay for enabling and disabling an MSI-X interrupt vector to use O(N) time, where N is the number of virtqueues assigned to that vector? I am considering an implementation that uses one eventfd per virtqueue. Each eventfd is registered with KVM as an irqfd. Enabling or disabling an MSI-X vector will require one ioctl for each virtqueue assigned to that vector, which is O(N).

Signature · 2 lines
Sincerely,
Demi Marie Obenour (she/her/hers)