mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
KVM: do not release the error page
After commit a2766325cf, the error page is replaced by the
error code, it need not be released anymore
[ The patch has been compiling tested for powerpc ]
Signed-off-by: Xiao Guangrong <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
This commit is contained in:
parent
cb9aaa30b1
commit
32cad84f44
8 changed files with 12 additions and 19 deletions
|
|
@ -111,7 +111,7 @@ void kvm_clear_async_pf_completion_queue(struct kvm_vcpu *vcpu)
|
|||
list_entry(vcpu->async_pf.done.next,
|
||||
typeof(*work), link);
|
||||
list_del(&work->link);
|
||||
if (work->page)
|
||||
if (!is_error_page(work->page))
|
||||
kvm_release_page_clean(work->page);
|
||||
kmem_cache_free(async_pf_cache, work);
|
||||
}
|
||||
|
|
@ -138,7 +138,7 @@ void kvm_check_async_pf_completion(struct kvm_vcpu *vcpu)
|
|||
|
||||
list_del(&work->queue);
|
||||
vcpu->async_pf.queued--;
|
||||
if (work->page)
|
||||
if (!is_error_page(work->page))
|
||||
kvm_release_page_clean(work->page);
|
||||
kmem_cache_free(async_pf_cache, work);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1186,8 +1186,9 @@ EXPORT_SYMBOL_GPL(gfn_to_page);
|
|||
|
||||
void kvm_release_page_clean(struct page *page)
|
||||
{
|
||||
if (!is_error_page(page))
|
||||
kvm_release_pfn_clean(page_to_pfn(page));
|
||||
WARN_ON(is_error_page(page));
|
||||
|
||||
kvm_release_pfn_clean(page_to_pfn(page));
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(kvm_release_page_clean);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue