69 lines
2.0 KiB
Diff
69 lines
2.0 KiB
Diff
|
|
From 16c4b8946903985e3dfd470d0e04b79d473505bc Mon Sep 17 00:00:00 2001
|
||
|
|
From: "wanghaibin.wang" <wanghaibin.wang@huawei.com>
|
||
|
|
Date: Sun, 17 Mar 2024 15:53:57 +0800
|
||
|
|
Subject: [PATCH] log: Add log at boot & cpu init for aarch64
|
||
|
|
|
||
|
|
Add log at boot & cpu init for aarch64
|
||
|
|
|
||
|
|
Signed-off-by: miaoyubo <miaoyubo@huawei.com>
|
||
|
|
Signed-off-by: Jingyi Wang <wangjingyi11@huawei.com>
|
||
|
|
Signed-off-by: Yuan Zhang <zhangyuan162@huawei.com>
|
||
|
|
---
|
||
|
|
hw/arm/boot.c | 4 ++++
|
||
|
|
hw/arm/virt.c | 3 +++
|
||
|
|
2 files changed, 7 insertions(+)
|
||
|
|
|
||
|
|
diff --git a/hw/arm/boot.c b/hw/arm/boot.c
|
||
|
|
index 84ea6a807a..d1671e1d42 100644
|
||
|
|
--- a/hw/arm/boot.c
|
||
|
|
+++ b/hw/arm/boot.c
|
||
|
|
@@ -11,6 +11,7 @@
|
||
|
|
#include "qemu/datadir.h"
|
||
|
|
#include "qemu/error-report.h"
|
||
|
|
#include "qapi/error.h"
|
||
|
|
+#include "qemu/log.h"
|
||
|
|
#include <libfdt.h>
|
||
|
|
#include "hw/arm/boot.h"
|
||
|
|
#include "hw/arm/linux-boot-if.h"
|
||
|
|
@@ -1226,6 +1227,9 @@ void arm_load_kernel(ARMCPU *cpu, MachineState *ms, struct arm_boot_info *info)
|
||
|
|
* doesn't support secure.
|
||
|
|
*/
|
||
|
|
assert(!(info->secure_board_setup && kvm_enabled()));
|
||
|
|
+
|
||
|
|
+ qemu_log("load the kernel\n");
|
||
|
|
+
|
||
|
|
info->kernel_filename = ms->kernel_filename;
|
||
|
|
info->kernel_cmdline = ms->kernel_cmdline;
|
||
|
|
info->initrd_filename = ms->initrd_filename;
|
||
|
|
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
|
||
|
|
index c19cacec8b..f4c3d47f30 100644
|
||
|
|
--- a/hw/arm/virt.c
|
||
|
|
+++ b/hw/arm/virt.c
|
||
|
|
@@ -32,6 +32,7 @@
|
||
|
|
#include "qemu/datadir.h"
|
||
|
|
#include "qemu/units.h"
|
||
|
|
#include "qemu/option.h"
|
||
|
|
+#include "qemu/log.h"
|
||
|
|
#include "monitor/qdev.h"
|
||
|
|
#include "hw/sysbus.h"
|
||
|
|
#include "hw/arm/boot.h"
|
||
|
|
@@ -1020,6 +1021,7 @@ static void virt_powerdown_req(Notifier *n, void *opaque)
|
||
|
|
{
|
||
|
|
VirtMachineState *s = container_of(n, VirtMachineState, powerdown_notifier);
|
||
|
|
|
||
|
|
+ qemu_log("send powerdown to vm.\n");
|
||
|
|
if (s->acpi_dev) {
|
||
|
|
acpi_send_event(s->acpi_dev, ACPI_POWER_DOWN_STATUS);
|
||
|
|
} else {
|
||
|
|
@@ -2240,6 +2242,7 @@ static void machvirt_init(MachineState *machine)
|
||
|
|
}
|
||
|
|
|
||
|
|
create_fdt(vms);
|
||
|
|
+ qemu_log("cpu init start\n");
|
||
|
|
|
||
|
|
assert(possible_cpus->len == max_cpus);
|
||
|
|
for (n = 0; n < possible_cpus->len; n++) {
|
||
|
|
--
|
||
|
|
2.27.0
|
||
|
|
|