Internships/ProjectIdeas/MockVirtqueuesRust: Difference between revisions

From QEMU
(Created page with "=== Mocking framework for Virtio Queues === '''Summary:''' Implement a mocking framework for virtio queues Paravirtualized devices (such as those defined by the Virtio stand...")
 
Line 27: Line 27:
* Skill level: intermediate
* Skill level: intermediate
* Language: Rust
* Language: Rust
* Mentor: aagch@amazon.com
* Mentors: aagch@amazon.com, iul@amazon.com
* Suggested by: aagch@amazon.com
* Suggested by: aagch@amazon.com

Revision as of 17:39, 18 February 2021

Mocking framework for Virtio Queues

Summary: Implement a mocking framework for virtio queues

Paravirtualized devices (such as those defined by the Virtio standard) are used to provide high performance device emulation. Virtio drivers from a guest VM communicate with the device model using an efficient mechanism based on queues stored in a shared memory area that operate based on a protocol and message format defined by the standard. Various implementations of devices and other virtualization building blocks require mocking the contents that a driver would place into a Virtio queue for validation, testing, and evaluation purposes.

This project aims to lay the foundations of a reusable framework for mocking the driver side of Virtio queue operation, that can be consumed by rust-vmm crates and other projects. At the basic level, this means providing a flexible and easy to use interface for users to set up the underlying memory areas and populate contents (as the driver would do) for the basic split queue format in a generic manner. This can further be extended for the packed format and with device-specific mocking capabilities.

Links:

Issue in rust-vmm about reusing the mocking logic: rust-vmm/vm-virtio: https://github.com/rust-vmm/vm-virtio

Details:

  • Skill level: intermediate
  • Language: Rust
  • Mentors: aagch@amazon.com, iul@amazon.com
  • Suggested by: aagch@amazon.com