提交 05e0c8c3 编写于 作者: A Avi Kivity

KVM: Unindent some code

Signed-off-by: NAvi Kivity <avi@qumranet.com>
上级 e6adf283
...@@ -1998,39 +1998,39 @@ static int vmx_vcpu_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) ...@@ -1998,39 +1998,39 @@ static int vmx_vcpu_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
asm ("mov %0, %%ds; mov %0, %%es" : : "r"(__USER_DS)); asm ("mov %0, %%ds; mov %0, %%es" : : "r"(__USER_DS));
if (fail) { if (unlikely(fail)) {
kvm_run->exit_reason = KVM_EXIT_FAIL_ENTRY; kvm_run->exit_reason = KVM_EXIT_FAIL_ENTRY;
kvm_run->fail_entry.hardware_entry_failure_reason kvm_run->fail_entry.hardware_entry_failure_reason
= vmcs_read32(VM_INSTRUCTION_ERROR); = vmcs_read32(VM_INSTRUCTION_ERROR);
r = 0; r = 0;
} else { goto out;
/* }
* Profile KVM exit RIPs: /*
*/ * Profile KVM exit RIPs:
if (unlikely(prof_on == KVM_PROFILING)) */
profile_hit(KVM_PROFILING, (void *)vmcs_readl(GUEST_RIP)); if (unlikely(prof_on == KVM_PROFILING))
profile_hit(KVM_PROFILING, (void *)vmcs_readl(GUEST_RIP));
vcpu->launched = 1;
r = kvm_handle_exit(kvm_run, vcpu); vcpu->launched = 1;
if (r > 0) { r = kvm_handle_exit(kvm_run, vcpu);
/* Give scheduler a change to reschedule. */ if (r > 0) {
if (signal_pending(current)) { /* Give scheduler a change to reschedule. */
r = -EINTR; if (signal_pending(current)) {
kvm_run->exit_reason = KVM_EXIT_INTR; r = -EINTR;
++vcpu->stat.signal_exits; kvm_run->exit_reason = KVM_EXIT_INTR;
goto out; ++vcpu->stat.signal_exits;
} goto out;
}
if (dm_request_for_irq_injection(vcpu, kvm_run)) {
r = -EINTR; if (dm_request_for_irq_injection(vcpu, kvm_run)) {
kvm_run->exit_reason = KVM_EXIT_INTR; r = -EINTR;
++vcpu->stat.request_irq_exits; kvm_run->exit_reason = KVM_EXIT_INTR;
goto out; ++vcpu->stat.request_irq_exits;
} goto out;
if (!need_resched()) { }
++vcpu->stat.light_exits; if (!need_resched()) {
goto again; ++vcpu->stat.light_exits;
} goto again;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册