@@ -49,7 +49,7 @@ use crate::terminal::term_set_raw_mode;
49
49
#[ cfg( feature = "blk" ) ]
50
50
use crate :: vmm_config:: block:: BlockBuilder ;
51
51
use crate :: vmm_config:: boot_source:: DEFAULT_KERNEL_CMDLINE ;
52
- #[ cfg( not( feature = "tee" ) ) ]
52
+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
53
53
use crate :: vmm_config:: fs:: FsDeviceConfig ;
54
54
#[ cfg( target_os = "linux" ) ]
55
55
use crate :: vstate:: KvmContext ;
@@ -60,7 +60,7 @@ use arch::ArchMemoryInfo;
60
60
#[ cfg( all( feature = "tee" , target_arch = "x86_64" ) ) ]
61
61
use arch:: InitrdConfig ;
62
62
use device_manager:: shm:: ShmManager ;
63
- #[ cfg( not( feature = "tee" ) ) ]
63
+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
64
64
use devices:: virtio:: { fs:: ExportTable , VirtioShmRegion } ;
65
65
#[ cfg( all( feature = "tee" , target_arch = "x86_64" ) ) ]
66
66
use kvm_bindings:: KVM_MAX_CPUID_ENTRIES ;
@@ -708,7 +708,7 @@ pub fn build_microvm(
708
708
vm_resources. console_output . clone ( ) ,
709
709
) ?;
710
710
711
- #[ cfg( not( feature = "tee" ) ) ]
711
+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
712
712
let export_table: Option < ExportTable > = if cfg ! ( feature = "gpu" ) {
713
713
Some ( Default :: default ( ) )
714
714
} else {
@@ -729,12 +729,12 @@ pub fn build_microvm(
729
729
_map_sender. clone ( ) ,
730
730
) ?;
731
731
}
732
- #[ cfg( not( feature = "tee" ) ) ]
732
+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
733
733
attach_fs_devices (
734
734
& mut vmm,
735
735
& vm_resources. fs ,
736
736
& mut _shm_manager,
737
- #[ cfg( not( feature = "tee" ) ) ]
737
+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
738
738
export_table,
739
739
intc. clone ( ) ,
740
740
#[ cfg( target_os = "macos" ) ]
@@ -1340,12 +1340,12 @@ fn attach_mmio_device(
1340
1340
Ok ( ( ) )
1341
1341
}
1342
1342
1343
- #[ cfg( not( feature = "tee" ) ) ]
1343
+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
1344
1344
fn attach_fs_devices (
1345
1345
vmm : & mut Vmm ,
1346
1346
fs_devs : & [ FsDeviceConfig ] ,
1347
1347
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 > ,
1349
1349
intc : Option < GicV3 > ,
1350
1350
#[ cfg( target_os = "macos" ) ] map_sender : Sender < MemoryMapping > ,
1351
1351
) -> std:: result:: Result < ( ) , StartMicrovmError > {
@@ -1373,7 +1373,7 @@ fn attach_fs_devices(
1373
1373
} ) ;
1374
1374
}
1375
1375
1376
- #[ cfg( not( feature = "tee" ) ) ]
1376
+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
1377
1377
if let Some ( export_table) = export_table. as_ref ( ) {
1378
1378
fs. lock ( ) . unwrap ( ) . set_export_table ( export_table. clone ( ) ) ;
1379
1379
}
0 commit comments