krata: begin work on guest message channel

This commit is contained in:
Alex Zenla
2024-03-27 06:28:47 +00:00
parent 66465793cd
commit d4f1ee5521
13 changed files with 340 additions and 58 deletions

View File

@ -14,6 +14,7 @@ use sys::{
use libc::{mmap, munmap, MAP_FAILED, MAP_SHARED, PROT_READ, PROT_WRITE};
#[derive(Clone)]
pub struct GrantDevice {
handle: Arc<File>,
}
@ -142,6 +143,7 @@ impl GrantAlloc {
}
}
#[derive(Clone)]
pub struct GrantTab {
device: GrantDevice,
}