]> nv-tegra.nvidia Code Review - linux-3.10.git/commit
KVM: iommu: fix releasing unmapped page
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Fri, 3 Aug 2012 07:36:52 +0000 (15:36 +0800)
committerAvi Kivity <avi@redhat.com>
Mon, 6 Aug 2012 13:04:46 +0000 (16:04 +0300)
commit16b854c889673d988285719bc020543a730f9ac6
tree03b85cb0aada8a8fa4fd538d9b0fddc5460df495
parentd89cc617b954aff4030fce178f7d86f59aaf713d
KVM: iommu: fix releasing unmapped page

There are two bugs:
- the 'error page' is forgot to be released
  [ it is unneeded after commit a2766325cf9f9, for backport, we
    still do kvm_release_pfn_clean for the error pfn ]

- guest pages are always released regardless of the unmapped page
  (e,g, caused by hwpoison)

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