@@ -57,7 +57,7 @@ use crate::terminal::term_set_raw_mode;
57
57
#[ cfg( feature = "blk" ) ]
58
58
use crate :: vmm_config:: block:: BlockBuilder ;
59
59
use crate :: vmm_config:: boot_source:: DEFAULT_KERNEL_CMDLINE ;
60
- #[ cfg( not( feature = "tee" ) ) ]
60
+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
61
61
use crate :: vmm_config:: fs:: FsDeviceConfig ;
62
62
#[ cfg( target_os = "linux" ) ]
63
63
use crate :: vstate:: KvmContext ;
@@ -66,7 +66,7 @@ use crate::vstate::MeasuredRegion;
66
66
use crate :: vstate:: { Error as VstateError , Vcpu , VcpuConfig , Vm } ;
67
67
use arch:: { ArchMemoryInfo , InitrdConfig } ;
68
68
use device_manager:: shm:: ShmManager ;
69
- #[ cfg( not( feature = "tee" ) ) ]
69
+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
70
70
use devices:: virtio:: { fs:: ExportTable , VirtioShmRegion } ;
71
71
use flate2:: read:: GzDecoder ;
72
72
#[ cfg( feature = "tee" ) ]
@@ -851,7 +851,7 @@ pub fn build_microvm(
851
851
vm_resources. console_output . clone ( ) ,
852
852
) ?;
853
853
854
- #[ cfg( not( feature = "tee" ) ) ]
854
+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
855
855
let export_table: Option < ExportTable > = if cfg ! ( feature = "gpu" ) {
856
856
Some ( Default :: default ( ) )
857
857
} else {
@@ -873,12 +873,12 @@ pub fn build_microvm(
873
873
) ?;
874
874
}
875
875
876
- #[ cfg( not( feature = "tee" ) ) ]
876
+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
877
877
attach_fs_devices (
878
878
& mut vmm,
879
879
& vm_resources. fs ,
880
880
& mut _shm_manager,
881
- #[ cfg( not( feature = "tee" ) ) ]
881
+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
882
882
export_table,
883
883
intc. clone ( ) ,
884
884
exit_code,
@@ -1717,12 +1717,12 @@ fn attach_mmio_device(
1717
1717
Ok ( ( ) )
1718
1718
}
1719
1719
1720
- #[ cfg( not( feature = "tee" ) ) ]
1720
+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
1721
1721
fn attach_fs_devices (
1722
1722
vmm : & mut Vmm ,
1723
1723
fs_devs : & [ FsDeviceConfig ] ,
1724
1724
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 > ,
1726
1726
intc : IrqChip ,
1727
1727
exit_code : Arc < AtomicI32 > ,
1728
1728
#[ cfg( target_os = "macos" ) ] map_sender : Sender < WorkerMessage > ,
@@ -1754,7 +1754,7 @@ fn attach_fs_devices(
1754
1754
} ) ;
1755
1755
}
1756
1756
1757
- #[ cfg( not( feature = "tee" ) ) ]
1757
+ #[ cfg( any ( not( feature = "tee" ) , feature = "cca ") ) ]
1758
1758
if let Some ( export_table) = export_table. as_ref ( ) {
1759
1759
fs. lock ( ) . unwrap ( ) . set_export_table ( export_table. clone ( ) ) ;
1760
1760
}
0 commit comments