fix(power): ensure that xeon cpus with cpu gaps are not detected as p/e compatible (#218)

This commit is contained in:
Alex Zenla
2024-06-29 22:25:15 -07:00
committed by GitHub
parent a79320b4fc
commit 35d585e3b1
2 changed files with 7 additions and 3 deletions

View File

@ -9,7 +9,7 @@ use krata::{
idm::{internal::event::Event as EventType, internal::Event},
v1::common::{GuestExitInfo, GuestState, GuestStatus},
};
use log::{error, info, warn};
use log::{error, warn};
use tokio::{
select,
sync::{
@ -90,7 +90,6 @@ impl DaemonEventGenerator {
let status = state.status();
let id = Uuid::from_str(&guest.id)?;
let domid = state.domid;
info!("Guest {} on Zone {} changed - {:?}", id, domid, status);
match status {
GuestStatus::Started => {
if let Entry::Vacant(e) = self.idms.entry(domid) {