File tree Expand file tree Collapse file tree 3 files changed +0
-4
lines changed Expand file tree Collapse file tree 3 files changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,6 @@ pub fn get_vm_dtb_arc(_vm_cfg: &AxVMConfig) -> Option<Arc<[u8]>> {
121
121
{
122
122
let cache_lock = dtb_cache ( ) . lock ( ) ;
123
123
if let Some ( dtb) = cache_lock. get ( & _vm_cfg. id ( ) ) {
124
- // Convert Vec<u8> to Arc<[u8]>
125
124
return Some ( Arc :: from ( dtb. as_slice ( ) ) ) ;
126
125
}
127
126
}
Original file line number Diff line number Diff line change @@ -98,8 +98,6 @@ pub fn crate_guest_fdt(
98
98
fdt_writer. finish ( ) . unwrap ( )
99
99
}
100
100
101
- // 移除了 crate_guest_fdt_with_cache 函数,因为它现在在 mod.rs 中实现
102
-
103
101
/// Node processing action enumeration
104
102
enum NodeAction {
105
103
/// Skip node, not included in guest FDT
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ pub fn setup_guest_fdt_from_vmm(
41
41
let passthrough_device_names = super :: device:: find_all_passthrough_devices ( vm_cfg, & fdt) ;
42
42
43
43
let dtb_data = super :: create:: crate_guest_fdt ( & fdt, & passthrough_device_names, crate_config) ;
44
- // 调用新的 crate_guest_fdt_with_cache 函数
45
44
crate_guest_fdt_with_cache ( dtb_data, crate_config) ;
46
45
}
47
46
You can’t perform that action at this time.
0 commit comments