Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82971
b: refs/heads/master
c: c0b49b0
h: refs/heads/master
i:
  82969: 2470ee4
  82967: f509326
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Feb 5, 2008
1 parent ca1e24f commit 373a1bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 9ef9dc69d4167276c04590d67ee55de8380bc1ad
refs/heads/master: c0b49b0d164c4902e53c17d90e2c5e5a2ac9e132
8 changes: 4 additions & 4 deletions trunk/arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -1739,7 +1739,7 @@ static int emulator_cmpxchg_emulated(unsigned long addr,
if (bytes == 8) {
gpa_t gpa;
struct page *page;
char *addr;
char *kaddr;
u64 val;

down_read(&current->mm->mmap_sem);
Expand All @@ -1754,9 +1754,9 @@ static int emulator_cmpxchg_emulated(unsigned long addr,

val = *(u64 *)new;
page = gfn_to_page(vcpu->kvm, gpa >> PAGE_SHIFT);
addr = kmap_atomic(page, KM_USER0);
set_64bit((u64 *)(addr + offset_in_page(gpa)), val);
kunmap_atomic(addr, KM_USER0);
kaddr = kmap_atomic(page, KM_USER0);
set_64bit((u64 *)(kaddr + offset_in_page(gpa)), val);
kunmap_atomic(kaddr, KM_USER0);
kvm_release_page_dirty(page);
emul_write:
up_read(&current->mm->mmap_sem);
Expand Down

0 comments on commit 373a1bc

Please sign in to comment.