]> err.no Git - linux-2.6/commit
KVM: MMU: Partial swapping of guest memory
authorIzik Eidus <avi@qumranet.com>
Thu, 18 Oct 2007 09:09:33 +0000 (11:09 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:52:54 +0000 (17:52 +0200)
commit8a7ae055f3533b520401c170ac55e30628b34df5
treef9654746dc92fa18ef66e49e12537dc6cb1d32e6
parentcea7bb21280e3a825e64b54740edc5d3e6e4193c
KVM: MMU: Partial swapping of guest memory

This allows guest memory to be swapped.  Pages which are currently mapped
via shadow page tables are pinned into memory, but all other pages can
be freely swapped.

The patch makes gfn_to_page() elevate the page's reference count, and
introduces kvm_release_page() that pairs with it.

Signed-off-by: Izik Eidus <izike@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm.h
drivers/kvm/kvm_main.c
drivers/kvm/mmu.c
drivers/kvm/paging_tmpl.h