[PATCH 03/10] KVM: ARM: VGIC: Kvm_err when kvm alloc memory what the VGIC needed failed.

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

 



Kvm_err when kvm alloc memory what vGIC needed failed, whatever vgic dist or vgic cpu.

Signed-off-by: wanghaibin <wanghaibin.wang@xxxxxxxxxx>
---
 virt/kvm/arm/vgic.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/virt/kvm/arm/vgic.c b/virt/kvm/arm/vgic.c
index d411551..bd4b104 100644
--- a/virt/kvm/arm/vgic.c
+++ b/virt/kvm/arm/vgic.c
@@ -1862,7 +1862,6 @@ static int vgic_init_maps(struct kvm *kvm)
 	kvm_for_each_vcpu(i, vcpu, kvm) {
 		ret = vgic_vcpu_init_maps(vcpu, nr_irqs);
 		if (ret) {
-			kvm_err("VGIC: Failed to allocate vcpu memory\n");
 			goto out;
 		}
 	}
@@ -1871,9 +1870,10 @@ static int vgic_init_maps(struct kvm *kvm)
 		vgic_set_target_reg(kvm, 0, i);
 
 out:
-	if (ret)
+	if (ret) {
+		kvm_err("VGIC: Failed to allocate vGIC memory\n");
 		kvm_vgic_destroy(kvm);
-
+	}
 	return ret;
 }
 
-- 
1.7.1


_______________________________________________
kvmarm mailing list
kvmarm@xxxxxxxxxxxxxxxxxxxxx
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm




[Index of Archives]     [Linux KVM]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux