rust-vmm / vm-virtio

virtio implementation
Apache License 2.0
364 stars 87 forks source link

FR: support for VIRTIO_F_IN_ORDER and Packed Ring #241

Open aftersnow opened 1 year ago

aftersnow commented 1 year ago

These two features are benefits to performance

rbradford commented 1 year ago

I don't think this crate needs to care about VIRTIO_F_IN_ORDER - that's more for the VMM to do it.

aftersnow commented 1 year ago

I don't think this crate needs to care about VIRTIO_F_IN_ORDER - that's more for the VMM to do it.

Yes, thanks for reply. The "Packed Ring" should benefits for performance, do you have plan to add support for it?

uran0sH commented 3 weeks ago

I will work on adding support for packed vring if no one works on it.

stefano-garzarella commented 2 weeks ago

@uran0sH that would be nice! If it can help, we implemented packed virtqueues in libblkio, but we didn't use rust-vmm crates in that project. You can find the code here: https://gitlab.com/libblkio/libblkio/-/blob/main/virtio-driver/src/virtqueue/packed.rs?ref_type=heads