KVM: MMU: use kvm_release_pfn_clean to release pfn
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Thu, 26 Jul 2012 03:57:43 +0000 (11:57 +0800)
committerAvi Kivity <avi@redhat.com>
Thu, 26 Jul 2012 08:55:30 +0000 (11:55 +0300)
commit3b2bd2f800ba9488d9ad493216a0c07d71055b56
tree9df3bbb27d9030fe4a06e6f527a8ccce6c291bc7
parente9bda6f6f902e6b55d9baceb5523468a048cbe56
KVM: MMU: use kvm_release_pfn_clean to release pfn

The current code depends on the fact that fault_page is the normal page,
however, we will use the error code instead of these dummy pages in the
later patch, so we use kvm_release_pfn_clean to release pfn which will
release the error code properly

Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c