vm-virtio: Update test activate() function

The type of interrupt_evt has changed along with the addition of an
msix_config member for the virtio device.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2019-07-16 10:36:08 +01:00 committed by Samuel Ortiz
parent a50c54671c
commit af15ce9dc3

View File

@ -250,7 +250,7 @@ impl VirtioPciCommonConfig {
#[cfg(test)]
mod tests {
use super::*;
use crate::ActivateResult;
use crate::{ActivateResult, VirtioInterrupt};
use std::sync::atomic::AtomicUsize;
use std::sync::Arc;
@ -271,7 +271,7 @@ mod tests {
fn activate(
&mut self,
_mem: GuestMemoryMmap,
_interrupt_evt: EventFd,
_interrupt_evt: Arc<VirtioInterrupt>,
_status: Arc<AtomicUsize>,
_queues: Vec<Queue>,
_queue_evts: Vec<EventFd>,
@ -298,6 +298,7 @@ mod tests {
device_feature_select: 0x0,
driver_feature_select: 0x0,
queue_select: 0xff,
msix_config: 0,
};
let dev = &mut DummyDevice(0) as &mut dyn VirtioDevice;