@@ -49,7 +49,7 @@ use crate::terminal::term_set_raw_mode;
4949#[ cfg( feature = "blk" ) ]
5050use crate :: vmm_config:: block:: BlockBuilder ;
5151use crate :: vmm_config:: boot_source:: DEFAULT_KERNEL_CMDLINE ;
52- #[ cfg( not( feature = "tee" ) ) ]
52+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
5353use crate :: vmm_config:: fs:: FsDeviceConfig ;
5454#[ cfg( target_os = "linux" ) ]
5555use crate :: vstate:: KvmContext ;
@@ -60,7 +60,7 @@ use arch::ArchMemoryInfo;
6060#[ cfg( all( feature = "tee" , target_arch = "x86_64" ) ) ]
6161use arch:: InitrdConfig ;
6262use device_manager:: shm:: ShmManager ;
63- #[ cfg( not( feature = "tee" ) ) ]
63+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
6464use devices:: virtio:: { fs:: ExportTable , VirtioShmRegion } ;
6565#[ cfg( all( feature = "tee" , target_arch = "x86_64" ) ) ]
6666use kvm_bindings:: KVM_MAX_CPUID_ENTRIES ;
@@ -708,7 +708,7 @@ pub fn build_microvm(
708708 vm_resources. console_output . clone ( ) ,
709709 ) ?;
710710
711- #[ cfg( not( feature = "tee" ) ) ]
711+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
712712 let export_table: Option < ExportTable > = if cfg ! ( feature = "gpu" ) {
713713 Some ( Default :: default ( ) )
714714 } else {
@@ -729,12 +729,12 @@ pub fn build_microvm(
729729 _map_sender. clone ( ) ,
730730 ) ?;
731731 }
732- #[ cfg( not( feature = "tee" ) ) ]
732+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
733733 attach_fs_devices (
734734 & mut vmm,
735735 & vm_resources. fs ,
736736 & mut _shm_manager,
737- #[ cfg( not( feature = "tee" ) ) ]
737+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
738738 export_table,
739739 intc. clone ( ) ,
740740 #[ cfg( target_os = "macos" ) ]
@@ -1340,12 +1340,12 @@ fn attach_mmio_device(
13401340 Ok ( ( ) )
13411341}
13421342
1343- #[ cfg( not( feature = "tee" ) ) ]
1343+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
13441344fn attach_fs_devices (
13451345 vmm : & mut Vmm ,
13461346 fs_devs : & [ FsDeviceConfig ] ,
13471347 shm_manager : & mut ShmManager ,
1348- #[ cfg( not( feature = "tee" ) ) ] export_table : Option < ExportTable > ,
1348+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ] export_table : Option < ExportTable > ,
13491349 intc : Option < GicV3 > ,
13501350 #[ cfg( target_os = "macos" ) ] map_sender : Sender < MemoryMapping > ,
13511351) -> std:: result:: Result < ( ) , StartMicrovmError > {
@@ -1373,7 +1373,7 @@ fn attach_fs_devices(
13731373 } ) ;
13741374 }
13751375
1376- #[ cfg( not( feature = "tee" ) ) ]
1376+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
13771377 if let Some ( export_table) = export_table. as_ref ( ) {
13781378 fs. lock ( ) . unwrap ( ) . set_export_table ( export_table. clone ( ) ) ;
13791379 }
0 commit comments