mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-02 21:00:55 +00:00
xenclient: add trace logging to init
This commit is contained in:
parent
685a15b056
commit
31739605a2
@ -7,7 +7,7 @@ mod x86;
|
|||||||
use crate::boot::BootSetup;
|
use crate::boot::BootSetup;
|
||||||
use crate::elfloader::ElfImageLoader;
|
use crate::elfloader::ElfImageLoader;
|
||||||
use crate::x86::X86BootSetup;
|
use crate::x86::X86BootSetup;
|
||||||
use log::warn;
|
use log::{trace, warn};
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
use std::fmt::{Display, Formatter};
|
use std::fmt::{Display, Formatter};
|
||||||
use std::fs::{read, File, OpenOptions};
|
use std::fs::{read, File, OpenOptions};
|
||||||
@ -85,23 +85,27 @@ impl From<EventChannelError> for XenClientError {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct BlockDeviceRef {
|
pub struct BlockDeviceRef {
|
||||||
pub path: String,
|
pub path: String,
|
||||||
pub major: u32,
|
pub major: u32,
|
||||||
pub minor: u32,
|
pub minor: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct DomainDisk<'a> {
|
pub struct DomainDisk<'a> {
|
||||||
pub vdev: &'a str,
|
pub vdev: &'a str,
|
||||||
pub block: &'a BlockDeviceRef,
|
pub block: &'a BlockDeviceRef,
|
||||||
pub writable: bool,
|
pub writable: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct DomainFilesystem<'a> {
|
pub struct DomainFilesystem<'a> {
|
||||||
pub path: &'a str,
|
pub path: &'a str,
|
||||||
pub tag: &'a str,
|
pub tag: &'a str,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct DomainConfig<'a> {
|
pub struct DomainConfig<'a> {
|
||||||
pub backend_domid: u32,
|
pub backend_domid: u32,
|
||||||
pub name: &'a str,
|
pub name: &'a str,
|
||||||
@ -235,6 +239,12 @@ impl XenClient {
|
|||||||
domain: &CreateDomain,
|
domain: &CreateDomain,
|
||||||
config: &DomainConfig,
|
config: &DomainConfig,
|
||||||
) -> Result<(), XenClientError> {
|
) -> Result<(), XenClientError> {
|
||||||
|
trace!(
|
||||||
|
"XenClient init domid={} domain={:?} config={:?}",
|
||||||
|
domid,
|
||||||
|
domain,
|
||||||
|
config
|
||||||
|
);
|
||||||
let backend_dom_path = self.store.get_domain_path(0)?;
|
let backend_dom_path = self.store.get_domain_path(0)?;
|
||||||
let dom_path = self.store.get_domain_path(domid)?;
|
let dom_path = self.store.get_domain_path(domid)?;
|
||||||
let uuid_string = Uuid::from_bytes(domain.handle).to_string();
|
let uuid_string = Uuid::from_bytes(domain.handle).to_string();
|
||||||
|
Loading…
Reference in New Issue
Block a user