os: build bootable images

This commit is contained in:
alex committed 2024-03-10 00:22:24 +00:00
1 parent 817509bcef
commit 4894bd9d1c
28 files changed
+384 -82

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ async fn main() -> Result<()> {
}
let kernel_image_path = args.get(1).expect("argument not specified");
let initrd_path = args.get(2).expect("argument not specified");
let mut client = XenClient::open().await?;
let mut client = XenClient::open(0).await?;
let config = DomainConfig {
backend_domid: 0,
name: "xenclient-test",
+2 -2
View File
@@ -83,9 +83,9 @@ pub struct DomainConfig<'a> {
}
impl XenClient {
pub async fn open() -> Result<XenClient> {
pub async fn open(current_domid: u32) -> Result<XenClient> {
let store = XsdClient::open().await?;
let call = XenCall::open()?;
let call = XenCall::open(current_domid)?;
Ok(XenClient { store, call })
}