summaryrefslogtreecommitdiff
path: root/arch/s390/kvm/kvm-s390.c
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2008-12-10 23:23:26 +0300
committerAvi Kivity <avi@redhat.com>2009-02-15 03:47:35 +0300
commit85db06e514422ae429b5f85742d8111b70bd56f3 (patch)
tree55acee5d8e3c51f09f44ccfcdd631590819b949d /arch/s390/kvm/kvm-s390.c
parent7a0eb1960e8ddcb68ea631caf16815485af0e228 (diff)
downloadlinux-85db06e514422ae429b5f85742d8111b70bd56f3.tar.xz
KVM: mmu_notifiers release method
The destructor for huge pages uses the backing inode for adjusting hugetlbfs accounting. Hugepage mappings are destroyed by exit_mmap, after mmu_notifier_release, so there are no notifications through unmap_hugepage_range at this point. The hugetlbfs inode can be freed with pages backed by it referenced by the shadow. When the shadow releases its reference, the huge page destructor will access a now freed inode. Implement the release operation for kvm mmu notifiers to release page refs before the hugetlbfs inode is gone. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/s390/kvm/kvm-s390.c')
0 files changed, 0 insertions, 0 deletions