From 120d95e03123ede9cc3aa05a8ce976fd4678a890 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Wed, 24 Oct 2018 17:06:07 -0700 Subject: devices: pci: support level-triggered interrupts Register the irqfd with resample support so that we can correctly emulate level-triggered interrupts. This requires each PciDevice to listen for interrupt_resample events and re-assert the IRQ eventfd if it should still be active. BUG=None TEST=Boot crosvm on x86-64 and arm devices Change-Id: I5cf8d1d1705cf675b453962c00d2d606801fee91 Signed-off-by: Daniel Verkamp Reviewed-on: https://chromium-review.googlesource.com/1298654 Commit-Ready: ChromeOS CL Exonerator Bot Reviewed-by: Dylan Reid --- devices/src/virtio/virtio_pci_common_config.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'devices/src/virtio/virtio_pci_common_config.rs') diff --git a/devices/src/virtio/virtio_pci_common_config.rs b/devices/src/virtio/virtio_pci_common_config.rs index 2793052..8596563 100644 --- a/devices/src/virtio/virtio_pci_common_config.rs +++ b/devices/src/virtio/virtio_pci_common_config.rs @@ -236,6 +236,7 @@ mod tests { &mut self, _mem: GuestMemory, _interrupt_evt: EventFd, + _interrupt_resample_evt: EventFd, _status: Arc, _queues: Vec, _queue_evts: Vec, -- cgit 1.4.1