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:
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:
adb root adb shell setprop hypervisor.virtualizationmanager.dump_device_tree true