From ed931cf6ae2ae8d1111aab2e1eab1d49ab497087 Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Fri, 14 Jun 2024 09:37:26 -0700 Subject: [PATCH] virtio-devices: vdpa: Not 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 138fe1a729..e7884b6fa9 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)?;