diff options
author | Alexander Graf <agraf@suse.de> | 2012-05-18 00:11:33 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2012-06-24 01:04:48 +0200 |
commit | 25b42708cd011e7d4b37313f7f83ac2551e5370f (patch) | |
tree | 6b82c27d481099d5adaa87f354c777718346ffe0 /qemu-config.c | |
parent | 2636fcb6532eafbb3f1fafba69a107664218e3c8 (diff) |
dt: Add -machine dumpdtb option to dump the current dtb
Now that we are dynamically creating the dtb, it's really useful to
be able to dump the created blob for debugging.
This patch implements a -machine dumpdtb=<file> option for e500 that
dumps the dtb exactly in the form the guest would get it to disk. It
can then be analyzed by dtc to get information about the guest
configuration.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'qemu-config.c')
-rw-r--r-- | qemu-config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qemu-config.c b/qemu-config.c index bb3bff426a..5bbebafa1b 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -583,6 +583,10 @@ static QemuOptsList qemu_machine_opts = { .name = "dtb", .type = QEMU_OPT_STRING, .help = "Linux kernel device tree file", + }, { + .name = "dumpdtb", + .type = QEMU_OPT_STRING, + .help = "Dump current dtb to a file and quit", }, { /* End of list */ } }, |