mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-04 05:31:32 +00:00
swap over to pv support
This commit is contained in:
@ -7,7 +7,7 @@ use log::error;
|
|||||||
use loopdev::LoopControl;
|
use loopdev::LoopControl;
|
||||||
use tokio::sync::Semaphore;
|
use tokio::sync::Semaphore;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
use xenclient::{x86pvh::X86PvhPlatform, XenClient};
|
use xenclient::{x86pv::X86PvPlatform, XenClient};
|
||||||
use xenstore::{XsdClient, XsdInterface};
|
use xenstore::{XsdClient, XsdInterface};
|
||||||
|
|
||||||
use self::{
|
use self::{
|
||||||
@ -21,7 +21,7 @@ pub mod channel;
|
|||||||
pub mod ip;
|
pub mod ip;
|
||||||
pub mod launch;
|
pub mod launch;
|
||||||
|
|
||||||
type RuntimePlatform = X86PvhPlatform;
|
type RuntimePlatform = X86PvPlatform;
|
||||||
|
|
||||||
pub struct GuestLoopInfo {
|
pub struct GuestLoopInfo {
|
||||||
pub device: String,
|
pub device: String,
|
||||||
@ -57,7 +57,7 @@ pub struct RuntimeContext {
|
|||||||
|
|
||||||
impl RuntimeContext {
|
impl RuntimeContext {
|
||||||
pub async fn new(host_uuid: Uuid) -> Result<Self> {
|
pub async fn new(host_uuid: Uuid) -> Result<Self> {
|
||||||
let xen = XenClient::open(0, RuntimePlatform::new()).await?;
|
let xen = XenClient::new(0, RuntimePlatform::new()).await?;
|
||||||
let ipv4_network = Ipv4Network::new(Ipv4Addr::new(10, 75, 80, 0), 24)?;
|
let ipv4_network = Ipv4Network::new(Ipv4Addr::new(10, 75, 80, 0), 24)?;
|
||||||
let ipv6_network = Ipv6Network::from_str("fdd4:1476:6c7e::/48")?;
|
let ipv6_network = Ipv6Network::from_str("fdd4:1476:6c7e::/48")?;
|
||||||
let ipvend =
|
let ipvend =
|
||||||
|
Reference in New Issue
Block a user