@@ -57,7 +57,7 @@ use crate::terminal::term_set_raw_mode;
5757#[ cfg( feature = "blk" ) ]
5858use crate :: vmm_config:: block:: BlockBuilder ;
5959use crate :: vmm_config:: boot_source:: DEFAULT_KERNEL_CMDLINE ;
60- #[ cfg( not( feature = "tee" ) ) ]
60+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
6161use crate :: vmm_config:: fs:: FsDeviceConfig ;
6262#[ cfg( target_os = "linux" ) ]
6363use crate :: vstate:: KvmContext ;
@@ -66,7 +66,7 @@ use crate::vstate::MeasuredRegion;
6666use crate :: vstate:: { Error as VstateError , Vcpu , VcpuConfig , Vm } ;
6767use arch:: { ArchMemoryInfo , InitrdConfig } ;
6868use device_manager:: shm:: ShmManager ;
69- #[ cfg( not( feature = "tee" ) ) ]
69+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
7070use devices:: virtio:: { fs:: ExportTable , VirtioShmRegion } ;
7171use flate2:: read:: GzDecoder ;
7272#[ cfg( feature = "tee" ) ]
@@ -851,7 +851,7 @@ pub fn build_microvm(
851851 vm_resources. console_output . clone ( ) ,
852852 ) ?;
853853
854- #[ cfg( not( feature = "tee" ) ) ]
854+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
855855 let export_table: Option < ExportTable > = if cfg ! ( feature = "gpu" ) {
856856 Some ( Default :: default ( ) )
857857 } else {
@@ -873,12 +873,12 @@ pub fn build_microvm(
873873 ) ?;
874874 }
875875
876- #[ cfg( not( feature = "tee" ) ) ]
876+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
877877 attach_fs_devices (
878878 & mut vmm,
879879 & vm_resources. fs ,
880880 & mut _shm_manager,
881- #[ cfg( not( feature = "tee" ) ) ]
881+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
882882 export_table,
883883 intc. clone ( ) ,
884884 exit_code,
@@ -1717,12 +1717,12 @@ fn attach_mmio_device(
17171717 Ok ( ( ) )
17181718}
17191719
1720- #[ cfg( not( feature = "tee" ) ) ]
1720+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
17211721fn attach_fs_devices (
17221722 vmm : & mut Vmm ,
17231723 fs_devs : & [ FsDeviceConfig ] ,
17241724 shm_manager : & mut ShmManager ,
1725- #[ cfg( not( feature = "tee" ) ) ] export_table : Option < ExportTable > ,
1725+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ] export_table : Option < ExportTable > ,
17261726 intc : IrqChip ,
17271727 exit_code : Arc < AtomicI32 > ,
17281728 #[ cfg( target_os = "macos" ) ] map_sender : Sender < WorkerMessage > ,
@@ -1754,7 +1754,7 @@ fn attach_fs_devices(
17541754 } ) ;
17551755 }
17561756
1757- #[ cfg( not( feature = "tee" ) ) ]
1757+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
17581758 if let Some ( export_table) = export_table. as_ref ( ) {
17591759 fs. lock ( ) . unwrap ( ) . set_export_table ( export_table. clone ( ) ) ;
17601760 }
0 commit comments