Skip to content

Commit 1a8df5d

Browse files
author
szy
committed
update log
1 parent 049dd65 commit 1a8df5d

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

src/vmm/config.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ pub fn get_vm_dtb_arc(_vm_cfg: &AxVMConfig) -> Option<Arc<[u8]>> {
121121
{
122122
let cache_lock = dtb_cache().lock();
123123
if let Some(dtb) = cache_lock.get(&_vm_cfg.id()) {
124-
// Convert Vec<u8> to Arc<[u8]>
125124
return Some(Arc::from(dtb.as_slice()));
126125
}
127126
}

src/vmm/fdt/create.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ pub fn crate_guest_fdt(
9898
fdt_writer.finish().unwrap()
9999
}
100100

101-
// 移除了 crate_guest_fdt_with_cache 函数,因为它现在在 mod.rs 中实现
102-
103101
/// Node processing action enumeration
104102
enum NodeAction {
105103
/// Skip node, not included in guest FDT

src/vmm/fdt/parser.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ pub fn setup_guest_fdt_from_vmm(
4141
let passthrough_device_names = super::device::find_all_passthrough_devices(vm_cfg, &fdt);
4242

4343
let dtb_data = super::create::crate_guest_fdt(&fdt, &passthrough_device_names, crate_config);
44-
// 调用新的 crate_guest_fdt_with_cache 函数
4544
crate_guest_fdt_with_cache(dtb_data, crate_config);
4645
}
4746

0 commit comments

Comments
 (0)