rcore-os / virtio-drivers

VirtIO guest drivers in Rust.
MIT License
209 stars 63 forks source link

Implement Send and Sync for various types. #132

Closed qwandor closed 5 months ago

qwandor commented 5 months ago

None of these types are bound to any particular thread, and there is no interior mutability; they use &mut self for any methods that change state.

Note that Send and Sync are automatically derived for some device types, e.g. VirtIOBlk and VirtIOGpu, so we don't need explicit implementations for them.