Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45276
b: refs/heads/master
c: 139bdb2
h: refs/heads/master
v: v3
  • Loading branch information
Avi Kivity authored and Linus Torvalds committed Jan 6, 2007
1 parent d5fb481 commit a69c013
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 5f1e0b6abcc100a79528387207adc3dd92aa5374
refs/heads/master: 139bdb2d9e410d448281057a37b53770324ccac8
12 changes: 8 additions & 4 deletions trunk/drivers/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,16 @@ static void rmap_write_protect(struct kvm *kvm, u64 gfn)

static int is_empty_shadow_page(hpa_t page_hpa)
{
u32 *pos;
u32 *end;
for (pos = __va(page_hpa), end = pos + PAGE_SIZE / sizeof(u32);
u64 *pos;
u64 *end;

for (pos = __va(page_hpa), end = pos + PAGE_SIZE / sizeof(u64);
pos != end; pos++)
if (*pos != 0)
if (*pos != 0) {
printk(KERN_ERR "%s: %p %llx\n", __FUNCTION__,
pos, *pos);
return 0;
}
return 1;
}

Expand Down

0 comments on commit a69c013

Please sign in to comment.