@@ -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,
@@ -1767,12 +1767,12 @@ fn attach_mmio_device(
1767
1767
Ok ( ( ) )
1768
1768
}
1769
1769
1770
- #[ cfg( not( any( feature = "tee" , feature = "nitro" ) ) ) ]
1770
+ #[ cfg( not( any( feature = "tee" , feature = "nitro" , feature = "cca" ) ) ) ]
1771
1771
fn attach_fs_devices (
1772
1772
vmm : & mut Vmm ,
1773
1773
fs_devs : & [ FsDeviceConfig ] ,
1774
1774
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 > ,
1776
1776
intc : IrqChip ,
1777
1777
exit_code : Arc < AtomicI32 > ,
1778
1778
#[ cfg( target_os = "macos" ) ] map_sender : Sender < WorkerMessage > ,
@@ -1804,7 +1804,7 @@ fn attach_fs_devices(
1804
1804
} ) ;
1805
1805
}
1806
1806
1807
- #[ cfg( not( feature = "tee" ) ) ]
1807
+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
1808
1808
if let Some ( export_table) = export_table. as_ref ( ) {
1809
1809
fs. lock ( ) . unwrap ( ) . set_export_table ( export_table. clone ( ) ) ;
1810
1810
}
0 commit comments