diff options
Diffstat (limited to 'drivers/kvm/kvm_main.c')
-rw-r--r-- | drivers/kvm/kvm_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c index 353e58527d15..af2d288c881d 100644 --- a/drivers/kvm/kvm_main.c +++ b/drivers/kvm/kvm_main.c | |||
@@ -2046,6 +2046,7 @@ again: | |||
2046 | kvm_x86_ops->inject_pending_vectors(vcpu, kvm_run); | 2046 | kvm_x86_ops->inject_pending_vectors(vcpu, kvm_run); |
2047 | 2047 | ||
2048 | vcpu->guest_mode = 1; | 2048 | vcpu->guest_mode = 1; |
2049 | kvm_guest_enter(); | ||
2049 | 2050 | ||
2050 | if (vcpu->requests) | 2051 | if (vcpu->requests) |
2051 | if (test_and_clear_bit(KVM_TLB_FLUSH, &vcpu->requests)) | 2052 | if (test_and_clear_bit(KVM_TLB_FLUSH, &vcpu->requests)) |
@@ -2053,6 +2054,7 @@ again: | |||
2053 | 2054 | ||
2054 | kvm_x86_ops->run(vcpu, kvm_run); | 2055 | kvm_x86_ops->run(vcpu, kvm_run); |
2055 | 2056 | ||
2057 | kvm_guest_exit(); | ||
2056 | vcpu->guest_mode = 0; | 2058 | vcpu->guest_mode = 0; |
2057 | local_irq_enable(); | 2059 | local_irq_enable(); |
2058 | 2060 | ||