diff options
author | Avi Kivity <avi@qumranet.com> | 2007-01-05 16:36:50 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2007-01-05 23:55:26 -0800 |
commit | 139bdb2d9e410d448281057a37b53770324ccac8 (patch) | |
tree | 35bd78df2e50b008e4dfb9477336bacb75b06252 /drivers/kvm | |
parent | 5f1e0b6abcc100a79528387207adc3dd92aa5374 (diff) | |
download | linux-3.10-139bdb2d9e410d448281057a37b53770324ccac8.tar.gz linux-3.10-139bdb2d9e410d448281057a37b53770324ccac8.tar.bz2 linux-3.10-139bdb2d9e410d448281057a37b53770324ccac8.zip |
[PATCH] KVM: MMU: If an empty shadow page is not empty, report more info
Signed-off-by: Avi Kivity <avi@qumranet.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/kvm')
-rw-r--r-- | drivers/kvm/mmu.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/kvm/mmu.c b/drivers/kvm/mmu.c index b9ba240144b..8cf3688f7e7 100644 --- 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; } |