crosvm/aarch64
Daniel Verkamp be67b60501 aarch64: dump device tree blob before length check
In case the final devicetree blob is too large to fit in the memory
reserved for it, it could be useful to inspect the generated FDT. Move
the code that dumps the FDT to a file before the length check so it will
be written out even if the size is too large.

BUG=None
TEST=crosvm run --dump-device-tree-blob /tmp/fdt # on aarch64

Change-Id: I1344d08cee5cb7eb0fd369314f2b765e37f18215
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4277621
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Shin Kawamura <kawasin@google.com>
2023-02-28 19:10:44 +00:00
..
src aarch64: dump device tree blob before length check 2023-02-28 19:10:44 +00:00
.build_test_skip
Cargo.toml jail: create jail crate from jail_helpers.rs 2023-02-14 00:24:55 +00:00