From 2e2b1e4230dd2c534f59cecade027ad96be192b5 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Mon, 27 Jan 2020 19:03:58 +0100 Subject: [PATCH] vm-virtio: Remove the multiqueue argument from the pausable macro We only need the ctrl queue one. Signed-off-by: Samuel Ortiz --- vm-virtio/src/device.rs | 2 +- vm-virtio/src/net.rs | 2 +- vm-virtio/src/vhost_user/net.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vm-virtio/src/device.rs b/vm-virtio/src/device.rs index f0baa9a8b..922eced3b 100644 --- a/vm-virtio/src/device.rs +++ b/vm-virtio/src/device.rs @@ -204,7 +204,7 @@ macro_rules! virtio_pausable { } }; - ($type:ident, $ctrl_q:expr, $mq: expr) => { + ($type:ident, $ctrl_q:expr) => { virtio_pausable_trait!($type); impl Pausable for $type { diff --git a/vm-virtio/src/net.rs b/vm-virtio/src/net.rs index b032dba61..909107f9b 100644 --- a/vm-virtio/src/net.rs +++ b/vm-virtio/src/net.rs @@ -583,6 +583,6 @@ impl VirtioDevice for Net { } } -virtio_pausable!(Net, true, true); +virtio_pausable!(Net, true); impl Snapshotable for Net {} impl Migratable for Net {} diff --git a/vm-virtio/src/vhost_user/net.rs b/vm-virtio/src/vhost_user/net.rs index 845dfeb82..ac9373a9e 100644 --- a/vm-virtio/src/vhost_user/net.rs +++ b/vm-virtio/src/vhost_user/net.rs @@ -361,6 +361,6 @@ impl VirtioDevice for Net { } } -virtio_pausable!(Net, true, true); +virtio_pausable!(Net, true); impl Snapshotable for Net {} impl Migratable for Net {}