Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202419
b: refs/heads/master
c: c19b8bd
h: refs/heads/master
i:
  202417: 338382f
  202415: 14c62e1
v: v3
  • Loading branch information
Wei Yongjun authored and Avi Kivity committed Aug 2, 2010
1 parent e366365 commit 9fb2104
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9195c4da26bbf8860e2e7b648dbf4ab465c7933a
refs/heads/master: c19b8bd60e19308d5583ef200ddcc782d85d9543
4 changes: 4 additions & 0 deletions trunk/arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -3562,6 +3562,10 @@ static int emulator_cmpxchg_emulated(unsigned long addr,
goto emul_write;

page = gfn_to_page(vcpu->kvm, gpa >> PAGE_SHIFT);
if (is_error_page(page)) {
kvm_release_page_clean(page);
goto emul_write;
}

kaddr = kmap_atomic(page, KM_USER0);
kaddr += offset_in_page(gpa);
Expand Down

0 comments on commit 9fb2104

Please sign in to comment.