aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/kvm/kvm_main.c')
-rw-r--r--drivers/kvm/kvm_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c
index ab4dbd7fa5f8..03c0ee74d757 100644
--- a/drivers/kvm/kvm_main.c
+++ b/drivers/kvm/kvm_main.c
@@ -1071,8 +1071,10 @@ static int emulator_write_emulated(unsigned long addr,
1071 struct kvm_vcpu *vcpu = ctxt->vcpu; 1071 struct kvm_vcpu *vcpu = ctxt->vcpu;
1072 gpa_t gpa = vcpu->mmu.gva_to_gpa(vcpu, addr); 1072 gpa_t gpa = vcpu->mmu.gva_to_gpa(vcpu, addr);
1073 1073
1074 if (gpa == UNMAPPED_GVA) 1074 if (gpa == UNMAPPED_GVA) {
1075 kvm_arch_ops->inject_page_fault(vcpu, addr, 2);
1075 return X86EMUL_PROPAGATE_FAULT; 1076 return X86EMUL_PROPAGATE_FAULT;
1077 }
1076 1078
1077 if (emulator_write_phys(vcpu, gpa, val, bytes)) 1079 if (emulator_write_phys(vcpu, gpa, val, bytes))
1078 return X86EMUL_CONTINUE; 1080 return X86EMUL_CONTINUE;