summaryrefslogtreecommitdiffstats
path: root/target/i386
diff options
context:
space:
mode:
authorLi Qiang2018-10-06 11:18:16 +0200
committerPaolo Bonzini2018-10-19 13:44:14 +0200
commit0c2ed83fa45aa5d80ecc7d3fff0ab38db2db5972 (patch)
treeb22632c694f444b73499ca6d2b942206c858a2e6 /target/i386
parenthyperv_testdev: add SynIC message and event testmodes (diff)
downloadqemu-0c2ed83fa45aa5d80ecc7d3fff0ab38db2db5972.tar.gz
qemu-0c2ed83fa45aa5d80ecc7d3fff0ab38db2db5972.tar.xz
qemu-0c2ed83fa45aa5d80ecc7d3fff0ab38db2db5972.zip
target/i386: kvm: just return after migrate_add_blocker failed
When migrate_add_blocker failed, the invtsc_mig_blocker is not appended so no need to remove. This can save several instructions. Signed-off-by: Li Qiang <liq3ea@163.com> Message-Id: <20181006091816.7659-1-liq3ea@163.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386')
-rw-r--r--target/i386/kvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/i386/kvm.c b/target/i386/kvm.c
index 7b7a56593e..115d8b4c14 100644
--- a/target/i386/kvm.c
+++ b/target/i386/kvm.c
@@ -1198,7 +1198,7 @@ int kvm_arch_init_vcpu(CPUState *cs)
if (local_err) {
error_report_err(local_err);
error_free(invtsc_mig_blocker);
- goto fail;
+ return r;
}
/* for savevm */
vmstate_x86_cpu.unmigratable = 1;