feat: guest device management

This commit is contained in:
Alex Zenla
2024-04-24 22:12:58 -07:00
parent afbc0a88bd
commit ef57de819f
18 changed files with 564 additions and 46 deletions

View File

@ -139,6 +139,16 @@ impl PciBdf {
vdefn,
}
}
pub fn with_domain(&self, domain: u32) -> PciBdf {
PciBdf {
domain: Some(domain),
bus: self.bus,
device: self.device,
function: self.function,
vdefn: self.vdefn,
}
}
}
impl FromStr for PciBdf {