Skip to content

Commit 7e2dd61

Browse files
committed
for tdx, link with libkrunfw-tdx flavor
Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
1 parent 750bdd4 commit 7e2dd61

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/libkrun/src/lib.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,16 @@ const KRUN_SUCCESS: i32 = 0;
6666
const MAX_ARGS: usize = 4096;
6767

6868
// krunfw library name for each context
69-
#[cfg(all(target_os = "linux", not(feature = "amd-sev")))]
69+
#[cfg(all(
70+
target_os = "linux",
71+
not(feature = "intel-tdx"),
72+
not(feature = "amd-sev")
73+
))]
7074
const KRUNFW_NAME: &str = "libkrunfw.so.4";
7175
#[cfg(all(target_os = "linux", feature = "amd-sev"))]
7276
const KRUNFW_NAME: &str = "libkrunfw-sev.so.4";
77+
#[cfg(all(target_os = "linux", feature = "intel-tdx"))]
78+
const KRUNFW_NAME: &str = "libkrunfw-tdx.so.4";
7379
#[cfg(all(target_os = "macos", not(feature = "efi")))]
7480
const KRUNFW_NAME: &str = "libkrunfw.4.dylib";
7581

0 commit comments

Comments
 (0)