krata: implement event notifications

This commit is contained in:
Alex Zenla
2024-03-06 15:57:56 +00:00
parent e300fd924f
commit 7c8d38a0ca
8 changed files with 248 additions and 17 deletions

View File

@ -15,7 +15,7 @@ use crate::runtime::cfgblk::ConfigBlock;
use crate::runtime::image::{cache::ImageCache, name::ImageName, ImageCompiler, ImageInfo};
use crate::runtime::RuntimeContext;
use super::GuestInfo;
use super::{GuestInfo, GuestState};
pub struct GuestLaunchRequest<'a> {
pub image: &'a str,
@ -192,6 +192,7 @@ impl GuestLauncher {
IpAddr::V6(guest_ipv6),
ipv6_network_mask as u8,
)?),
state: GuestState { exit_code: None },
}),
Err(error) => {
let _ = context.autoloop.unloop(&image_squashfs_loop.path);