fix(power-trap-eacces): gracefully handle hypercall errors in power management (#325)

* daemon: reenable built-in power management policy

* xenruntime: gracefully handle power management errors
This commit is contained in:
Ariadne Conill authored and GitHub committed 2024-08-13 08:22:05 +00:00
1 parent dcffaf110e
commit 0358c9c775
2 files changed
+15 -8

No files matched your search

+6 -6
View File
@@ -141,12 +141,12 @@ impl Daemon {
// TODO: Create a way of abstracting early init tasks in kratad.
// TODO: Make initial power management policy configurable.
// FIXME: Power management hypercalls fail when running as an L1 hypervisor.
// let power = runtime.power_management_context().await?;
// power.set_smt_policy(true).await?;
// power
// .set_scheduler_policy("performance".to_string())
// .await?;
let power = runtime.power_management_context().await?;
power.set_smt_policy(true).await?;
power
.set_scheduler_policy("performance".to_string())
.await?;
info!("power management initialized");
info!("krata daemon initialized");
Ok(Self {