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] 099cdd2af8

Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
Bo Chen 2024-06-14 09:37:26 -07:00 committed by Rob Bradford
parent 6cb76abbf1
commit cdd3ff5e5a

View File

@ -151,7 +151,7 @@ impl Vdpa {
last: state.iova_range_last, last: state.iova_range_last,
}, },
state.backend_features, state.backend_features,
true, false,
) )
} else { } else {
let device_type = vhost.get_device_id().map_err(Error::GetDeviceId)?; let device_type = vhost.get_device_id().map_err(Error::GetDeviceId)?;