From 37e664db0af03acd81fa627f6105cb8c1010ea96 Mon Sep 17 00:00:00 2001 From: Kaige Fu Date: Tue, 29 May 2018 15:43:26 +0800 Subject: [PATCH] HV: Replace misused pr_fatal with pr_acrnlog The following massages is not fatal error but should be print to serial and sbuf at the same time. pr_fatal is not a good choice. pr_acrnlog is designed to deal with the situation. So replace the following misused pr_fatal with pr_acrnlog. Signed-off-by: Kaige Fu Reviewed-by: Kevin Tian --- hypervisor/arch/x86/ept.c | 4 ++-- hypervisor/arch/x86/guest/vm.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hypervisor/arch/x86/ept.c b/hypervisor/arch/x86/ept.c index 6eab68d8d..908626048 100644 --- a/hypervisor/arch/x86/ept.c +++ b/hypervisor/arch/x86/ept.c @@ -445,10 +445,10 @@ int ept_violation_vmexit_handler(struct vcpu *vcpu) return status; out: - pr_fatal("Guest Linear Address: 0x%016llx", + pr_acrnlog("Guest Linear Address: 0x%016llx", exec_vmread(VMX_GUEST_LINEAR_ADDR)); - pr_fatal("Guest Physical Address address: 0x%016llx", + pr_acrnlog("Guest Physical Address address: 0x%016llx", gpa); return status; diff --git a/hypervisor/arch/x86/guest/vm.c b/hypervisor/arch/x86/guest/vm.c index 5ec76f20f..e06430ebe 100644 --- a/hypervisor/arch/x86/guest/vm.c +++ b/hypervisor/arch/x86/guest/vm.c @@ -328,7 +328,7 @@ int prepare_vm0(void) /* start vm0 BSP automatically */ start_vm(vm); - pr_fatal("Start VM0"); + pr_acrnlog("Start VM0"); return 0; }