@@ -59,7 +59,7 @@ use crate::terminal::term_set_raw_mode;
59
59
#[ cfg( feature = "blk" ) ]
60
60
use crate :: vmm_config:: block:: BlockBuilder ;
61
61
use 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" ) ) ) ]
63
63
use crate :: vmm_config:: fs:: FsDeviceConfig ;
64
64
#[ cfg( target_os = "linux" ) ]
65
65
use crate :: vstate:: KvmContext ;
@@ -68,7 +68,7 @@ use crate::vstate::MeasuredRegion;
68
68
use crate :: vstate:: { Error as VstateError , Vcpu , VcpuConfig , Vm } ;
69
69
use arch:: { ArchMemoryInfo , InitrdConfig } ;
70
70
use device_manager:: shm:: ShmManager ;
71
- #[ cfg( not( any( feature = "tee" , feature = "nitro" ) ) ) ]
71
+ #[ cfg( not( any( feature = "tee" , feature = "nitro" , feature = "cca" ) ) ) ]
72
72
use devices:: virtio:: { fs:: ExportTable , VirtioShmRegion } ;
73
73
use flate2:: read:: GzDecoder ;
74
74
#[ cfg( feature = "tee" ) ]
@@ -878,7 +878,7 @@ pub fn build_microvm(
878
878
vm_resources. console_output . clone ( ) ,
879
879
) ?;
880
880
881
- #[ cfg( not( any( feature = "tee" , feature = "nitro" ) ) ) ]
881
+ #[ cfg( not( any( feature = "tee" , feature = "nitro" , feature = "cca" ) ) ) ]
882
882
let export_table: Option < ExportTable > = if cfg ! ( feature = "gpu" ) {
883
883
Some ( Default :: default ( ) )
884
884
} else {
@@ -899,12 +899,12 @@ pub fn build_microvm(
899
899
_sender. clone ( ) ,
900
900
) ?;
901
901
}
902
- #[ cfg( not( any( feature = "tee" , feature = "nitro" ) ) ) ]
902
+ #[ cfg( not( any( feature = "tee" , feature = "nitro" , feature = "cca" ) ) ) ]
903
903
attach_fs_devices (
904
904
& mut vmm,
905
905
& vm_resources. fs ,
906
906
& mut _shm_manager,
907
- #[ cfg( not( feature = "tee" ) ) ]
907
+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
908
908
export_table,
909
909
intc. clone ( ) ,
910
910
exit_code,
@@ -1768,12 +1768,12 @@ fn attach_mmio_device(
1768
1768
Ok ( ( ) )
1769
1769
}
1770
1770
1771
- #[ cfg( not( any( feature = "tee" , feature = "nitro" ) ) ) ]
1771
+ #[ cfg( not( any( feature = "tee" , feature = "nitro" , feature = "cca" ) ) ) ]
1772
1772
fn attach_fs_devices (
1773
1773
vmm : & mut Vmm ,
1774
1774
fs_devs : & [ FsDeviceConfig ] ,
1775
1775
shm_manager : & mut ShmManager ,
1776
- #[ cfg( not( feature = "tee" ) ) ] export_table : Option < ExportTable > ,
1776
+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ] export_table : Option < ExportTable > ,
1777
1777
intc : IrqChip ,
1778
1778
exit_code : Arc < AtomicI32 > ,
1779
1779
#[ cfg( target_os = "macos" ) ] map_sender : Sender < WorkerMessage > ,
@@ -1805,7 +1805,7 @@ fn attach_fs_devices(
1805
1805
} ) ;
1806
1806
}
1807
1807
1808
- #[ cfg( not( feature = "tee" ) ) ]
1808
+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
1809
1809
if let Some ( export_table) = export_table. as_ref ( ) {
1810
1810
fs. lock ( ) . unwrap ( ) . set_export_table ( export_table. clone ( ) ) ;
1811
1811
}
0 commit comments