Skip to content

Commit

Permalink
virtio-devices: vdpa: Don't restore on paused state
Browse files Browse the repository at this point in the history
Since vdpa device does not support pause/resume [1], it does not make
sense to restore on paused state.

[1] cloud-hypervisor@099cdd2

Signed-off-by: Bo Chen <[email protected]>
  • Loading branch information
likebreath authored and rbradford committed Jun 15, 2024
1 parent 6cb76ab commit cdd3ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtio-devices/src/vdpa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand Down

0 comments on commit cdd3ff5

Please sign in to comment.