提交 0c2ed83f 编写于 作者: L Li Qiang 提交者: Paolo Bonzini

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: NLi Qiang <liq3ea@163.com>
Message-Id: <20181006091816.7659-1-liq3ea@163.com>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 6738ccff
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册