mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
f72868a451
When a filtered DT overlay is applied, cros_fdt applies the filtered node(s) and its dependencies. Until now, the filtered node's dependencies were: - its parent nodes - all nodes in the subtree rooted at the filtered node, ie its child nodes - all nodes referenced by their phandle value from any of the above Including all child nodes as dependencies is incorrect. Simply referencing a bus node from any node in the DT would include all of the devices on a bus. For VM device assignment, it would populate the DT with devices that are not being assigned. This change updates the filtering algorithm to stop treating child nodes of a filtered node as dependecies. Bug: 320481473 Test: cd cros_fdt && cargo test Change-Id: I3c393d41a4c497c043917767d555880896c10eb5 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5217131 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Pierre-Clément Tosi <ptosi@google.com> Commit-Queue: Jakob Vukalović <jakobvukalovic@google.com> |
||
---|---|---|
.. | ||
src | ||
test-files | ||
Cargo.toml |