mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-23 09:23:25 +00:00
Support TDX debugging feature
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
05ff441577
commit
d67976da88
@ -25,3 +25,7 @@ pub fn profile_name_adapter(profile: &str) -> &str {
|
||||
pub fn bin_file_name() -> String {
|
||||
get_current_crate_info().name + "-osdk-bin"
|
||||
}
|
||||
|
||||
pub(crate) fn is_tdx_enabled() -> bool {
|
||||
std::env::var("INTEL_TDX").is_ok_and(|s| s == "1")
|
||||
}
|
||||
|
Reference in New Issue
Block a user