[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/5] log: Add logs during qemu start
From: |
Peng Liang |
Subject: |
[PATCH 5/5] log: Add logs during qemu start |
Date: |
Thu, 6 Aug 2020 17:37:20 +0800 |
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(-)
diff --git a/blockdev.c b/blockdev.c
index 3848a9c8ab..8e3ab8a9b2 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -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;
diff --git a/softmmu/vl.c b/softmmu/vl.c
index a9f06111b3..493518de66 100644
--- a/softmmu/vl.c
+++ b/softmmu/vl.c
@@ -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);
diff --git a/util/oslib-posix.c b/util/oslib-posix.c
index ad8001a4ad..87c1c8569e 100644
--- a/util/oslib-posix.c
+++ b/util/oslib-posix.c
@@ -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;
}
--
2.18.4
- [PATCH 0/5] log: Add logs for some modules, Peng Liang, 2020/08/06
- [PATCH 3/5] log: Add more details to virtio_report in virtqueue_pop, Peng Liang, 2020/08/06
- [PATCH 1/5] log: Add logs for vm start and destroy, Peng Liang, 2020/08/06
- [PATCH 2/5] log: Add log for each modules, Peng Liang, 2020/08/06
- [PATCH 4/5] log: Add log at boot & cpu init for aarch64, Peng Liang, 2020/08/06
- [PATCH 5/5] log: Add logs during qemu start,
Peng Liang <=
- Re: [PATCH 0/5] log: Add logs for some modules, Daniel P . Berrangé, 2020/08/06