blob: fcaa60b70c3baead970a726bc0f4698c549d4622 [file] [view] [edit]
# Dump device tree
The VM's device tree can be dumped on creation by adding the `--dump_device_tree`
argument and passing a path where the device tree gets dumped to, as follows:
```shell
adb shell /apex/com.android.virt/bin/vm run-microdroid --dump-device-tree PATH
```
Note: you can set the system property
`hypervisor.virtualizationmanager.dump_device_tree` to true to always dump the
device tree to `/data/misc/virtualizationservice/$CID/device_tree.dtb` where
$CID is the CID of the VM. To set the property, run:
```shell
adb root
adb shell setprop hypervisor.virtualizationmanager.dump_device_tree true
```