mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[PATCH] KVM: MMU: Ensure freed shadow pages are clean
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]>
This commit is contained in:
parent
260746c03d
commit
5f1e0b6abc
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue