79c4324644
Change-Id: I2d302dda68298877c65c99147f5bf22186a59aac
68 lines
2.0 KiB
Diff
68 lines
2.0 KiB
Diff
From 2d3abbcc8f6c6db582d931ba194b26dd7148849f Mon Sep 17 00:00:00 2001
|
|
From: "wanghaibin.wang" <wanghaibin.wang@huawei.com>
|
|
Date: Mon, 16 Oct 2017 18:01:59 +0800
|
|
Subject: [PATCH 1/3] 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>
|
|
---
|
|
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 74ad397b1f..21024f7999 100644
|
|
--- a/hw/arm/boot.c
|
|
+++ b/hw/arm/boot.c
|
|
@@ -12,6 +12,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"
|
|
@@ -1317,6 +1318,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 0538d258fa..47e98f09e8 100644
|
|
--- a/hw/arm/virt.c
|
|
+++ b/hw/arm/virt.c
|
|
@@ -33,6 +33,7 @@
|
|
#include "qemu/datadir.h"
|
|
#include "qemu/units.h"
|
|
#include "qemu/option.h"
|
|
+#include "qemu/log.h"
|
|
#include "monitor/qdev.h"
|
|
#include "qapi/error.h"
|
|
#include "hw/sysbus.h"
|
|
@@ -971,6 +972,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 {
|
|
@@ -2072,6 +2074,7 @@ static void machvirt_init(MachineState *machine)
|
|
}
|
|
|
|
create_fdt(vms);
|
|
+ qemu_log("cpu init start\n");
|
|
|
|
possible_cpus = mc->possible_cpu_arch_ids(machine);
|
|
assert(possible_cpus->len == max_cpus);
|
|
--
|
|
2.30.0
|
|
|