mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-22 17:03:23 +00:00
Use macro to handle TDX-related code
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
dd3aa8fe81
commit
49e6cd2712
@ -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.");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user