Skip to content

Commit 9f7a75a

Browse files
slptylerfanelli
authored andcommitted
libkrun: fix shutdown_efd for efi flavor
In e789b3f I broke the logic, which only created the shutdown_efd on the efi flavor, to only create it on the tee flavor, which doesn't make sense. Fix it here. Signed-off-by: Sergio Lopez <[email protected]>
1 parent 06cf357 commit 9f7a75a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libkrun/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ pub extern "C" fn krun_set_log_level(level: u32) -> i32 {
314314
#[no_mangle]
315315
pub extern "C" fn krun_create_ctx() -> i32 {
316316
let ctx_cfg = {
317-
let shutdown_efd = if cfg!(feature = "tee") {
317+
let shutdown_efd = if cfg!(feature = "efi") {
318318
Some(EventFd::new(utils::eventfd::EFD_NONBLOCK).unwrap())
319319
} else {
320320
None

0 commit comments

Comments
 (0)