]> Git Repo - qemu.git/blobdiff - hw/misc/vmcoreinfo.c
hw/arm/allwinner-h3: add Clock Control Unit
[qemu.git] / hw / misc / vmcoreinfo.c
index 987d6f52af3586e64e23156edf3653b5ffa7563f..a9d718fc236d90637317927d2bec7c48905dfb63 100644 (file)
@@ -13,7 +13,9 @@
 #include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "qemu/module.h"
+#include "sysemu/reset.h"
 #include "hw/nvram/fw_cfg.h"
+#include "migration/vmstate.h"
 #include "hw/misc/vmcoreinfo.h"
 
 static void fw_cfg_vmci_write(void *dev, off_t offset, size_t len)
@@ -59,6 +61,10 @@ static void vmcoreinfo_realize(DeviceState *dev, Error **errp)
                              NULL, fw_cfg_vmci_write, s,
                              &s->vmcoreinfo, sizeof(s->vmcoreinfo), false);
 
+    /*
+     * This device requires to register a global reset because it is
+     * not plugged to a bus (which, as its QOM parent, would reset it).
+     */
     qemu_register_reset(vmcoreinfo_reset, dev);
     vmcoreinfo_state = s;
 }
This page took 0.023267 seconds and 4 git commands to generate.