commit | 7f2658db73168fb72a0ecfba76c3158f6026807c | [log] [tgz] |
---|---|---|
author | Pierre-Clément Tosi <ptosi@google.com> | Mon Jan 22 15:56:07 2024 +0000 |
committer | Pierre-Clément Tosi <ptosi@google.com> | Fri Feb 16 14:52:18 2024 +0000 |
tree | 3b79d4ffc4e9f397533f63bd937d8ecd6be91b66 | |
parent | ee0a1eb528ae4659513aedeccf885fa34e9459b4 [diff] |
libfdt: Simplify locating nodes at the root As the DTSpec defines the offset of the root as 0, simplify .root*() to instantiate the FdtNode* directly, without involving libfdt. Note that a future patch may turn these functions from -> Result<_> to -> _ as they should never fail. Use that to locate nodes at hard-coded paths which are subnodes of the root by calling .root().subnode(), which removes the need for libfdt to do any path parsing and results in a single (and simple) C call: fdt_subnode_offset_namelen(fdt, 0, name, name.len()); which simply parses the root. Note that the same change can't be made for the mutable versions because the borrow checker complains about the way we are getting subnodes of FdtNodeMut instances. Test: m pvmfw Test: atest liblibfdt.integration_test Change-Id: I1bcdc9f7a4883e31ef60cfaed61f26465386c996
Android Virtualization Framework (AVF) provides secure and private execution environments for executing code. AVF is ideal for security-oriented use cases that require stronger isolation assurances over those offered by Android’s app sandbox.
Visit our public doc site to learn more about what AVF is, what it is for, and how it is structured. This repository contains source code for userspace components of AVF.
If you want a quick start, see the getting started guideline and follow the steps there.
For in-depth explanations about individual topics and components, visit the following links.
AVF components:
AVF APIs:
How-Tos: