Skip to content
Commit 290fc38d authored by Izik Eidus's avatar Izik Eidus Committed by Avi Kivity
Browse files

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: default avatarIzik Eidus <izik@qumranet.com>
Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent f566e09f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment