diff mbox series

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

Message ID 20200806093720.2355692-5-liangpeng10@huawei.com (mailing list archive)
State New, archived
Headers show
Series log: Add logs for some modules | expand

Commit Message

Peng Liang Aug. 6, 2020, 9:37 a.m. UTC
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 mbox series

Patch

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++) {