From cdd3ff5e5a700d5bdb858ae77f820939a985aaf3 Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Fri, 14 Jun 2024 09:37:26 -0700 Subject: [PATCH] virtio-devices: vdpa: Don't restore on paused state Since vdpa device does not support pause/resume [1], it does not make sense to restore on paused state. [1] https://github.com/cloud-hypervisor/cloud-hypervisor/commit/099cdd2af88ac6a8ede490e73ff0eb58a812bde2 Signed-off-by: Bo Chen --- virtio-devices/src/vdpa.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtio-devices/src/vdpa.rs b/virtio-devices/src/vdpa.rs index 138fe1a72..e7884b6fa 100644 --- a/virtio-devices/src/vdpa.rs +++ b/virtio-devices/src/vdpa.rs @@ -151,7 +151,7 @@ impl Vdpa { last: state.iova_range_last, }, state.backend_features, - true, + false, ) } else { let device_type = vhost.get_device_id().map_err(Error::GetDeviceId)?;