Files
cloud-hypervisor/vmm/src
Isaku Yamahata 9d3451a56a vmm: Fix aarch64 vmm::vm::unit_tests::test_create_fdt_with_devices()
test_create_fdt_with_devices() fails with a divide by zero.  The caller
passes Some((0, 0, 0, 0)) for CPU topology as (threads_per_core,
cores_per_die, dies_per_package, packages).  The valid default is
(1, 1, 1, 1), not all zero. Pass None because the eventual callee,
create_cpu_nodes(), checks None to get the right default value.

This affects the unit test only.  A real VM never hits it because
VmConfig::validate() rejects zero with an error.

Fixes: 7fb980f17 ("arch, vmm: Pass cpu topology configuation to FDT")
Assisted-by: Claude:Opus-4.8 (1M context)
Signed-off-by: Isaku Yamahata <iyamahata@crusoe.ai>
2026-07-22 08:53:04 +00:00
..
2026-07-20 17:51:23 +00:00
2026-07-06 16:31:21 +00:00
2026-06-11 19:06:49 +00:00
2026-06-24 15:12:32 +00:00
2026-06-24 15:12:32 +00:00
2026-06-24 15:12:32 +00:00
2026-06-24 15:12:32 +00:00
2026-07-20 16:06:55 +00:00
2026-06-24 15:12:32 +00:00
2026-06-25 16:54:35 +00:00
2026-06-24 15:12:32 +00:00
2026-06-24 15:12:32 +00:00
2026-04-02 23:43:42 +00:00
2026-06-25 16:54:35 +00:00