]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: dont hold pagecount reference for mapped sptes pages
authorIzik Eidus <ieidus@redhat.com>
Wed, 23 Sep 2009 18:47:16 +0000 (21:47 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 4 Oct 2009 15:04:48 +0000 (17:04 +0200)
commit1fb722124cc29a91534a0a8cbccaef2eba472016
tree20c5fb817e34ddca6dd4ec20ce70613eba5b10d1
parent07b3d49d417d5cb90b8efc1100c5ad3bd2a3f179
KVM: MMU: dont hold pagecount reference for mapped sptes pages

When using mmu notifiers, we are allowed to remove the page count
reference tooken by get_user_pages to a specific page that is mapped
inside the shadow page tables.

This is needed so we can balance the pagecount against mapcount
checking.

(Right now kvm increase the pagecount and does not increase the
mapcount when mapping page into shadow page table entry,
so when comparing pagecount against mapcount, you have no
reliable result.)

Signed-off-by: Izik Eidus <ieidus@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/mmu.c