xen: begin work on xen grant mappings

This commit is contained in:
Alex Zenla
2024-03-25 04:49:57 +00:00
parent 001409378e
commit 0a5948aa50
5 changed files with 347 additions and 0 deletions

View File

@ -0,0 +1,13 @@
use std::io;
#[derive(thiserror::Error, Debug)]
pub enum Error {
#[error("kernel error")]
Kernel(#[from] nix::errno::Errno),
#[error("io issue encountered")]
Io(#[from] io::Error),
#[error("failed to read structure")]
StructureReadFailed,
}
pub type Result<T> = std::result::Result<T, Error>;