Skip to content

Commit b2bd509

Browse files
author
Dorinda Bassey
committed
Add core VhostUserDevice implementation
Implement generic vhost-user device wrapper with connection, feature negotiation, and Guest physical address(GPA) to Virtual address(VA) translation. Supports protocol feature negotiation (CONFIG, MQ) and forwards backend interrupts to guest. Signed-off-by: Dorinda Bassey <dbassey@redhat.com>
1 parent f3eac2f commit b2bd509

3 files changed

Lines changed: 459 additions & 0 deletions

File tree

src/devices/src/virtio/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ mod queue;
3636
pub mod rng;
3737
#[cfg(feature = "snd")]
3838
pub mod snd;
39+
#[cfg(feature = "vhost-user")]
40+
pub mod vhost_user;
3941
pub mod vsock;
4042

4143
#[cfg(not(feature = "tee"))]
@@ -56,6 +58,8 @@ pub use self::queue::{Descriptor, DescriptorChain, Queue};
5658
pub use self::rng::*;
5759
#[cfg(feature = "snd")]
5860
pub use self::snd::Snd;
61+
#[cfg(feature = "vhost-user")]
62+
pub use self::vhost_user::VhostUserDevice;
5963
pub use self::vsock::*;
6064

6165
/// When the driver initializes the device, it lets the device know about the

0 commit comments

Comments
 (0)