@@ -59,7 +59,7 @@ use crate::terminal::term_set_raw_mode;
5959#[ cfg( feature = "blk" ) ]
6060use crate :: vmm_config:: block:: BlockBuilder ;
6161use crate :: vmm_config:: boot_source:: DEFAULT_KERNEL_CMDLINE ;
62- #[ cfg( not( any( feature = "tee" , feature = "nitro" ) ) ) ]
62+ #[ cfg( not( any( feature = "tee" , feature = "nitro" , feature = "cca" ) ) ) ]
6363use crate :: vmm_config:: fs:: FsDeviceConfig ;
6464#[ cfg( target_os = "linux" ) ]
6565use crate :: vstate:: KvmContext ;
@@ -68,7 +68,7 @@ use crate::vstate::MeasuredRegion;
6868use crate :: vstate:: { Error as VstateError , Vcpu , VcpuConfig , Vm } ;
6969use arch:: { ArchMemoryInfo , InitrdConfig } ;
7070use device_manager:: shm:: ShmManager ;
71- #[ cfg( not( any( feature = "tee" , feature = "nitro" ) ) ) ]
71+ #[ cfg( not( any( feature = "tee" , feature = "nitro" , feature = "cca" ) ) ) ]
7272use devices:: virtio:: { fs:: ExportTable , VirtioShmRegion } ;
7373use flate2:: read:: GzDecoder ;
7474#[ cfg( feature = "tee" ) ]
@@ -878,7 +878,7 @@ pub fn build_microvm(
878878 vm_resources. console_output . clone ( ) ,
879879 ) ?;
880880
881- #[ cfg( not( any( feature = "tee" , feature = "nitro" ) ) ) ]
881+ #[ cfg( not( any( feature = "tee" , feature = "nitro" , feature = "cca" ) ) ) ]
882882 let export_table: Option < ExportTable > = if cfg ! ( feature = "gpu" ) {
883883 Some ( Default :: default ( ) )
884884 } else {
@@ -899,12 +899,12 @@ pub fn build_microvm(
899899 _sender. clone ( ) ,
900900 ) ?;
901901 }
902- #[ cfg( not( any( feature = "tee" , feature = "nitro" ) ) ) ]
902+ #[ cfg( not( any( feature = "tee" , feature = "nitro" , feature = "cca" ) ) ) ]
903903 attach_fs_devices (
904904 & mut vmm,
905905 & vm_resources. fs ,
906906 & mut _shm_manager,
907- #[ cfg( not( feature = "tee" ) ) ]
907+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
908908 export_table,
909909 intc. clone ( ) ,
910910 exit_code,
@@ -1767,12 +1767,12 @@ fn attach_mmio_device(
17671767 Ok ( ( ) )
17681768}
17691769
1770- #[ cfg( not( any( feature = "tee" , feature = "nitro" ) ) ) ]
1770+ #[ cfg( not( any( feature = "tee" , feature = "nitro" , feature = "cca" ) ) ) ]
17711771fn attach_fs_devices (
17721772 vmm : & mut Vmm ,
17731773 fs_devs : & [ FsDeviceConfig ] ,
17741774 shm_manager : & mut ShmManager ,
1775- #[ cfg( not( feature = "tee" ) ) ] export_table : Option < ExportTable > ,
1775+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ] export_table : Option < ExportTable > ,
17761776 intc : IrqChip ,
17771777 exit_code : Arc < AtomicI32 > ,
17781778 #[ cfg( target_os = "macos" ) ] map_sender : Sender < WorkerMessage > ,
@@ -1804,7 +1804,7 @@ fn attach_fs_devices(
18041804 } ) ;
18051805 }
18061806
1807- #[ cfg( not( feature = "tee" ) ) ]
1807+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
18081808 if let Some ( export_table) = export_table. as_ref ( ) {
18091809 fs. lock ( ) . unwrap ( ) . set_export_table ( export_table. clone ( ) ) ;
18101810 }
0 commit comments