diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-07-17 12:26:59 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-10-13 04:18:19 -0400 |
commit | 8fc0d085f521a2a76418f8f569cf1cd27f0e43d4 (patch) | |
tree | f4820bd9da8c2e1f7059f5709e3ac6097ff218f6 /drivers/kvm/svm.c | |
parent | 9eb829ced8c6f2e43a3a644ddf1279ffeee38a33 (diff) |
KVM: Set exit_reason to KVM_EXIT_MMIO where run->mmio is initialized.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/svm.c')
-rw-r--r-- | drivers/kvm/svm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c index 5c058fa1c8ad..850a1b1d86c5 100644 --- a/drivers/kvm/svm.c +++ b/drivers/kvm/svm.c | |||
@@ -928,7 +928,6 @@ static int pf_interception(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) | |||
928 | return 1; | 928 | return 1; |
929 | case EMULATE_DO_MMIO: | 929 | case EMULATE_DO_MMIO: |
930 | ++vcpu->stat.mmio_exits; | 930 | ++vcpu->stat.mmio_exits; |
931 | kvm_run->exit_reason = KVM_EXIT_MMIO; | ||
932 | return 0; | 931 | return 0; |
933 | case EMULATE_FAIL: | 932 | case EMULATE_FAIL: |
934 | vcpu_printf(vcpu, "%s: emulate fail\n", __FUNCTION__); | 933 | vcpu_printf(vcpu, "%s: emulate fail\n", __FUNCTION__); |