Use macro to handle TDX-related code

This commit is contained in:
Hsy-Intel
2025-03-13 21:58:10 +00:00
committed by Tate, Hongliang Tian
parent dd3aa8fe81
commit 49e6cd2712
14 changed files with 166 additions and 193 deletions

View File

@ -7,8 +7,6 @@ use core::sync::atomic::{AtomicBool, Ordering};
use spin::Once;
#[cfg(feature = "cvm_guest")]
use crate::mm::frame::allocator;
use crate::{
arch::boot::smp::{bringup_all_aps, get_num_processors},
cpu,
@ -103,9 +101,6 @@ pub fn boot_all_aps() {
bringup_all_aps(num_cpus);
wait_for_all_aps_started();
#[cfg(feature = "cvm_guest")]
allocator::reclaim_tdx_ap_boot_memory();
log::info!("All application processors started. The BSP continues to run.");
}