qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 4/5] log: Add log at boot & cpu init for aarch64


From: Peng Liang
Subject: [PATCH 4/5] log: Add log at boot & cpu init for aarch64
Date: Thu, 6 Aug 2020 17:37:19 +0800

Add log at boot & cpu init for aarch64.

Signed-off-by: Peng Liang <liangpeng10@huawei.com>
---
 hw/arm/boot.c | 2 ++
 hw/arm/virt.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/hw/arm/boot.c b/hw/arm/boot.c
index 3e9816af80..a2d5787807 100644
--- a/hw/arm/boot.c
+++ b/hw/arm/boot.c
@@ -1292,6 +1292,8 @@ void arm_load_kernel(ARMCPU *cpu, MachineState *ms, 
struct arm_boot_info *info)
      * doesn't support secure.
      */
     assert(!(info->secure_board_setup && kvm_enabled()));
+    info_report("load the kernel");
+
     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 ecfee362a1..ae2fb7a14d 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -820,6 +820,7 @@ static void virt_powerdown_req(Notifier *n, void *opaque)
 {
     VirtMachineState *s = container_of(n, VirtMachineState, 
powerdown_notifier);
 
+    info_report("send powerdown to vm.");
     if (s->acpi_dev) {
         acpi_send_event(s->acpi_dev, ACPI_POWER_DOWN_STATUS);
     } else {
@@ -1780,6 +1781,7 @@ static void machvirt_init(MachineState *machine)
     }
 
     create_fdt(vms);
+    info_report("cpu init start");
 
     possible_cpus = mc->possible_cpu_arch_ids(machine);
     for (n = 0; n < possible_cpus->len; n++) {
-- 
2.18.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]