virtio-devices: Add set_notifier() method to VirtioInterrupt

It is currently left as unimplemented!().

No functional change intended as there are no callers.

Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
This commit is contained in:
Demi Marie Obenour
2026-03-12 21:48:12 -04:00
committed by Sebastien Boeuf
parent 0f7dc514ba
commit e1c40211ae
16 changed files with 117 additions and 0 deletions

View File

@@ -37,6 +37,12 @@ pub trait VirtioInterrupt: Send + Sync {
fn notifier(&self, _int_type: VirtioInterruptType) -> Option<EventFd> {
None
}
fn set_notifier(
&self,
int_type: u32,
notifier: Option<EventFd>,
vm: &dyn hypervisor::Vm,
) -> std::io::Result<()>;
}
#[derive(Clone)]