diff options
author | Avi Kivity <avi@qumranet.com> | 2007-01-05 19:36:49 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2007-01-06 02:55:26 -0500 |
commit | 5f1e0b6abcc100a79528387207adc3dd92aa5374 (patch) | |
tree | 5bdabf79d89bea50e66db6960611702e9c39543b /drivers/kvm/mmu.c | |
parent | 260746c03dcb2e5089f95b60cb786aaf405ced63 (diff) |
[PATCH] KVM: MMU: Ensure freed shadow pages are clean
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/mmu.c')
-rw-r--r-- | drivers/kvm/mmu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/kvm/mmu.c b/drivers/kvm/mmu.c index c55ce7d1509..b9ba240144b 100644 --- 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) | |||
318 | { | 318 | { |
319 | struct kvm_mmu_page *page_head = page_header(page_hpa); | 319 | struct kvm_mmu_page *page_head = page_header(page_hpa); |
320 | 320 | ||
321 | ASSERT(is_empty_shadow_page(page_hpa)); | ||
321 | list_del(&page_head->link); | 322 | list_del(&page_head->link); |
322 | page_head->page_hpa = page_hpa; | 323 | page_head->page_hpa = page_hpa; |
323 | list_add(&page_head->link, &vcpu->free_pages); | 324 | list_add(&page_head->link, &vcpu->free_pages); |