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:
260746c
)
[PATCH] KVM: MMU: Ensure freed shadow pages are clean
author
Avi Kivity
<avi@qumranet.com>
Sat, 6 Jan 2007 00:36:49 +0000
(16:36 -0800)
committer
Linus Torvalds
<torvalds@woody.osdl.org>
Sat, 6 Jan 2007 07:55:26 +0000
(23:55 -0800)
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>
drivers/kvm/mmu.c
patch
|
blob
|
history
diff --git
a/drivers/kvm/mmu.c
b/drivers/kvm/mmu.c
index c55ce7d1509e48f10ac6a5785e2bbb23019b0b05..b9ba240144b7cb7dafa81b43cee3c513ef6eb076 100644
(file)
--- a/
drivers/kvm/mmu.c
+++ b/
drivers/kvm/mmu.c
@@
-318,6
+318,7
@@
static void kvm_mmu_free_page(struct kvm_vcpu *vcpu, hpa_t page_hpa)
{
struct kvm_mmu_page *page_head = page_header(page_hpa);
+ ASSERT(is_empty_shadow_page(page_hpa));
list_del(&page_head->link);
page_head->page_hpa = page_hpa;
list_add(&page_head->link, &vcpu->free_pages);