mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-28 03:43:23 +00:00
Rename "intel_tdx" feature to "cvm_guest"
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
ca41687a99
commit
8317c4c1e8
@ -15,4 +15,4 @@ aster-time = { path = "comps/time" }
|
||||
aster-framebuffer = { path = "comps/framebuffer" }
|
||||
|
||||
[features]
|
||||
intel_tdx = ["ostd/intel_tdx", "aster-nix/intel_tdx"]
|
||||
cvm_guest = ["ostd/cvm_guest", "aster-nix/cvm_guest"]
|
||||
|
@ -75,4 +75,4 @@ version = "1.0"
|
||||
features = ["spin_no_std"]
|
||||
|
||||
[features]
|
||||
intel_tdx = ["dep:tdx-guest"]
|
||||
cvm_guest = ["dep:tdx-guest"]
|
||||
|
@ -10,7 +10,7 @@ mod urandom;
|
||||
mod zero;
|
||||
|
||||
cfg_if! {
|
||||
if #[cfg(all(target_arch = "x86_64", feature = "intel_tdx"))] {
|
||||
if #[cfg(all(target_arch = "x86_64", feature = "cvm_guest"))] {
|
||||
mod tdxguest;
|
||||
|
||||
use tdx_guest::tdx_is_enabled;
|
||||
@ -41,7 +41,7 @@ pub fn init() -> Result<()> {
|
||||
let tty = Arc::new(tty::TtyDevice);
|
||||
add_node(tty, "tty")?;
|
||||
cfg_if! {
|
||||
if #[cfg(all(target_arch = "x86_64", feature = "intel_tdx"))] {
|
||||
if #[cfg(all(target_arch = "x86_64", feature = "cvm_guest"))] {
|
||||
let tdx_guest = Arc::new(tdxguest::TdxGuest);
|
||||
|
||||
if tdx_is_enabled() {
|
||||
|
Reference in New Issue
Block a user