unpause domain so domain can run during boot

This commit is contained in:
Alex Zenla
2024-01-17 01:41:17 -08:00
parent 5c1bb3d8fc
commit 6ca61410ad
7 changed files with 68 additions and 8 deletions

View File

@ -12,6 +12,7 @@ use std::string::FromUtf8Error;
use xencall::domctl::DomainControl;
use xencall::sys::CreateDomain;
use xencall::{XenCall, XenCallError};
use xenevtchn::EventChannelError;
use xenstore::bus::XsdBusError;
use xenstore::client::{XsdClient, XsdInterface};
@ -69,6 +70,12 @@ impl From<FromUtf8Error> for XenClientError {
}
}
impl From<EventChannelError> for XenClientError {
fn from(value: EventChannelError) -> Self {
XenClientError::new(value.to_string().as_str())
}
}
impl XenClient {
pub fn open() -> Result<XenClient, XenClientError> {
let store = XsdClient::open()?;