projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f1e0b6
)
[PATCH] KVM: MMU: If an empty shadow page is not empty, report more info
author
Avi Kivity
<
[email protected]
>
Sat, 6 Jan 2007 00:36:50 +0000
(16:36 -0800)
committer
Linus Torvalds
<
[email protected]
>
Sat, 6 Jan 2007 07:55:26 +0000
(23:55 -0800)
Signed-off-by: Avi Kivity <
[email protected]
>
Acked-by: Ingo Molnar <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/kvm/mmu.c
patch
|
blob
|
history
diff --git
a/drivers/kvm/mmu.c
b/drivers/kvm/mmu.c
index b9ba240144b7cb7dafa81b43cee3c513ef6eb076..8cf3688f7e708e1e7aee529f3deb7a39adb79e0f 100644
(file)
--- a/
drivers/kvm/mmu.c
+++ b/
drivers/kvm/mmu.c
@@
-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;
}