]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Remove the usage of page->private field by rmap
authorIzik Eidus <izike@qumranet.com>
Thu, 27 Sep 2007 12:11:22 +0000 (14:11 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:52:50 +0000 (17:52 +0200)
commit60b470452d501dfb1d0cc1026d48a0725a3447ed
tree983b2b4cecbe489f7b84391c5eed34aa9f073da0
parent9791ef001a58fcfb8481417b304ea2976c0c6fa2
KVM: Remove the usage of page->private field by rmap

When kvm uses user-allocated pages in the future for the guest, we won't
be able to use page->private for rmap, since page->rmap is reserved for
the filesystem.  So we move the rmap base pointers to the memory slot.

A side effect of this is that we need to store the gfn of each gpte in
the shadow pages, since the memory slot is addressed by gfn, instead of
hfn like struct page.

Signed-off-by: Izik Eidus <izik@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