Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54102
b: refs/heads/master
c: c9047f5
h: refs/heads/master
v: v3
  • Loading branch information
Avi Kivity committed May 3, 2007
1 parent 99cf743 commit e35ff70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 364b625b561b1dd74e6fa696949ae3de28999a66
refs/heads/master: c9047f533373e934b96d19d6a3d313ca2132fbe5
4 changes: 3 additions & 1 deletion trunk/drivers/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1071,8 +1071,10 @@ static int emulator_write_emulated(unsigned long addr,
struct kvm_vcpu *vcpu = ctxt->vcpu;
gpa_t gpa = vcpu->mmu.gva_to_gpa(vcpu, addr);

if (gpa == UNMAPPED_GVA)
if (gpa == UNMAPPED_GVA) {
kvm_arch_ops->inject_page_fault(vcpu, addr, 2);
return X86EMUL_PROPAGATE_FAULT;
}

if (emulator_write_phys(vcpu, gpa, val, bytes))
return X86EMUL_CONTINUE;
Expand Down

0 comments on commit e35ff70

Please sign in to comment.