aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/vmx.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-04-30 09:15:58 -0400
committerAvi Kivity <avi@qumranet.com>2007-07-16 05:05:38 -0400
commit05e0c8c344dd356b42e81bdf0d47d2b884bf49b5 (patch)
treea5428c93ba4db12244641240a7f6231f396d0333 /drivers/kvm/vmx.c
parente6adf28365b2fca0b5235cabff00c9f3d1e7bdf4 (diff)
KVM: Unindent some code
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/vmx.c')
-rw-r--r--drivers/kvm/vmx.c58
1 files changed, 29 insertions, 29 deletions
diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
index 84ce0c0930a0..9ebb18d07bde 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -1998,39 +1998,39 @@ again:
1998 1998
1999 asm ("mov %0, %%ds; mov %0, %%es" : : "r"(__USER_DS)); 1999 asm ("mov %0, %%ds; mov %0, %%es" : : "r"(__USER_DS));
2000 2000
2001 if (fail) { 2001 if (unlikely(fail)) {
2002 kvm_run->exit_reason = KVM_EXIT_FAIL_ENTRY; 2002 kvm_run->exit_reason = KVM_EXIT_FAIL_ENTRY;
2003 kvm_run->fail_entry.hardware_entry_failure_reason 2003 kvm_run->fail_entry.hardware_entry_failure_reason
2004 = vmcs_read32(VM_INSTRUCTION_ERROR); 2004 = vmcs_read32(VM_INSTRUCTION_ERROR);
2005 r = 0; 2005 r = 0;
2006 } else { 2006 goto out;
2007 /* 2007 }
2008 * Profile KVM exit RIPs: 2008 /*
2009 */ 2009 * Profile KVM exit RIPs:
2010 if (unlikely(prof_on == KVM_PROFILING)) 2010 */
2011 profile_hit(KVM_PROFILING, (void *)vmcs_readl(GUEST_RIP)); 2011 if (unlikely(prof_on == KVM_PROFILING))
2012 2012 profile_hit(KVM_PROFILING, (void *)vmcs_readl(GUEST_RIP));
2013 vcpu->launched = 1; 2013
2014 r = kvm_handle_exit(kvm_run, vcpu); 2014 vcpu->launched = 1;
2015 if (r > 0) { 2015 r = kvm_handle_exit(kvm_run, vcpu);
2016 /* Give scheduler a change to reschedule. */ 2016 if (r > 0) {
2017 if (signal_pending(current)) { 2017 /* Give scheduler a change to reschedule. */
2018 r = -EINTR; 2018 if (signal_pending(current)) {
2019 kvm_run->exit_reason = KVM_EXIT_INTR; 2019 r = -EINTR;
2020 ++vcpu->stat.signal_exits; 2020 kvm_run->exit_reason = KVM_EXIT_INTR;
2021 goto out; 2021 ++vcpu->stat.signal_exits;
2022 } 2022 goto out;
2023 2023 }
2024 if (dm_request_for_irq_injection(vcpu, kvm_run)) { 2024
2025 r = -EINTR; 2025 if (dm_request_for_irq_injection(vcpu, kvm_run)) {
2026 kvm_run->exit_reason = KVM_EXIT_INTR; 2026 r = -EINTR;
2027 ++vcpu->stat.request_irq_exits; 2027 kvm_run->exit_reason = KVM_EXIT_INTR;
2028 goto out; 2028 ++vcpu->stat.request_irq_exits;
2029 } 2029 goto out;
2030 if (!need_resched()) { 2030 }
2031 ++vcpu->stat.light_exits; 2031 if (!need_resched()) {
2032 goto again; 2032 ++vcpu->stat.light_exits;
2033 } 2033 goto again;
2034 } 2034 }
2035 } 2035 }
2036 2036