forked from Minki/linux
[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>
This commit is contained in:
parent
260746c03d
commit
5f1e0b6abc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user