@@ -1001,6 +1001,8 @@ DriveInfo *drive_new(QemuOpts *all_opts, BlockInterfaceType block_default_type,
qdict_put_str(bs_opts, "rerror", rerror);
}
+ info_report("blockdev init(%s).", filename ? filename : "");
+
/* Actual block device init: Functionality shared with blockdev-add */
blk = blockdev_init(filename, bs_opts, errp);
bs_opts = NULL;
@@ -1070,6 +1070,8 @@ static void configure_blockdev(BlockdevOptionsQueue *bdo_queue,
exit(0);
}
+ info_report("Finish drive init.");
+
default_drive(default_cdrom, snapshot, machine_class->block_default_type, 2,
CDROM_OPTS);
default_drive(default_floppy, snapshot, IF_FLOPPY, 0, FD_OPTS);
@@ -66,9 +66,7 @@
#include "qemu/mmap-alloc.h"
-#ifdef CONFIG_DEBUG_STACK_USAGE
#include "qemu/error-report.h"
-#endif
#define MAX_MEM_PREALLOC_THREAD_COUNT 16
@@ -558,6 +556,7 @@ static bool touch_all_pages(char *area, size_t hpagesize, size_t numpages,
g_free(memset_thread);
memset_thread = NULL;
+ info_report("Finish touching all pages.");
return memset_thread_failed;
}
Add logs during qemu start. Signed-off-by: Peng Liang <liangpeng10@huawei.com> --- blockdev.c | 2 ++ softmmu/vl.c | 2 ++ util/oslib-posix.c | 3 +-- 3 files changed, 5 insertions(+), 2 deletions(-)