|
|
b38b0f |
From 28e39ed55e3b01d883e0fa7d2d65937769fa5f72 Mon Sep 17 00:00:00 2001
|
|
|
b38b0f |
From: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
b38b0f |
Date: Mon, 22 Jul 2019 18:22:06 +0100
|
|
|
b38b0f |
Subject: [PATCH 25/39] target/i386: kvm: just return after migrate_add_blocker
|
|
|
b38b0f |
failed
|
|
|
b38b0f |
|
|
|
b38b0f |
RH-Author: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
b38b0f |
Message-id: <20190722182220.19374-5-pbonzini@redhat.com>
|
|
|
b38b0f |
Patchwork-id: 89622
|
|
|
b38b0f |
O-Subject: [RHEL-8.1.0 PATCH qemu-kvm v3 04/18] target/i386: kvm: just return after migrate_add_blocker failed
|
|
|
b38b0f |
Bugzilla: 1689269
|
|
|
b38b0f |
RH-Acked-by: Peter Xu <zhexu@redhat.com>
|
|
|
b38b0f |
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
|
|
|
b38b0f |
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
b38b0f |
|
|
|
b38b0f |
From: Li Qiang <liq3ea@163.com>
|
|
|
b38b0f |
|
|
|
b38b0f |
When migrate_add_blocker failed, the invtsc_mig_blocker is not
|
|
|
b38b0f |
appended so no need to remove. This can save several instructions.
|
|
|
b38b0f |
|
|
|
b38b0f |
Signed-off-by: Li Qiang <liq3ea@163.com>
|
|
|
b38b0f |
Message-Id: <20181006091816.7659-1-liq3ea@163.com>
|
|
|
b38b0f |
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
b38b0f |
(cherry picked from commit 0c2ed83fa45aa5d80ecc7d3fff0ab38db2db5972)
|
|
|
b38b0f |
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
|
|
|
b38b0f |
---
|
|
|
b38b0f |
target/i386/kvm.c | 2 +-
|
|
|
b38b0f |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
b38b0f |
|
|
|
b38b0f |
diff --git a/target/i386/kvm.c b/target/i386/kvm.c
|
|
|
b38b0f |
index d414187..875412c 100644
|
|
|
b38b0f |
--- a/target/i386/kvm.c
|
|
|
b38b0f |
+++ b/target/i386/kvm.c
|
|
|
b38b0f |
@@ -1142,7 +1142,7 @@ int kvm_arch_init_vcpu(CPUState *cs)
|
|
|
b38b0f |
if (local_err) {
|
|
|
b38b0f |
error_report_err(local_err);
|
|
|
b38b0f |
error_free(invtsc_mig_blocker);
|
|
|
b38b0f |
- goto fail;
|
|
|
b38b0f |
+ return r;
|
|
|
b38b0f |
}
|
|
|
b38b0f |
/* for savevm */
|
|
|
b38b0f |
vmstate_x86_cpu.unmigratable = 1;
|
|
|
b38b0f |
--
|
|
|
b38b0f |
1.8.3.1
|
|
|
b38b0f |
|