rust-vmm / vm-virtio

virtio implementation
Apache License 2.0
361 stars 87 forks source link

vsock: Migrate to `ptr_guard()` for volatile slice #257

Closed vireshk closed 10 months ago

vireshk commented 10 months ago

as_ptr() is deprecated now and users must use ptr_guard() instead. Migrate to that.

Summary of the PR

Please summarize here why the changes in this PR are needed.

Requirements

Before submitting your PR, please make sure you addressed the following requirements:

vireshk commented 10 months ago

Fixes: https://github.com/rust-vmm/vm-virtio/pull/254