]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit290fc38da8187b53b78dd4d5ab27a20b88ef8b61
tree983b2b4cecbe489f7b84391c5eed34aa9f073da0
parentf566e09fc2c9f4164e1f0017c8c1c7a18bad7d72
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