Skip to content

Commit

Permalink
target/i386: kvm: just return after migrate_add_blocker failed
Browse files Browse the repository at this point in the history
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 <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
terenceli authored and bonzini committed Oct 19, 2018
1 parent 6738ccf commit 0c2ed83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target/i386/kvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0c2ed83

Please sign in to comment.