Blame SOURCES/kvm-target-i386-kvm-just-return-after-migrate_add_blocke.patch

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