• Izik Eidus's avatar
    KVM: Remove the usage of page->private field by rmap · 290fc38d
    Izik Eidus authored
    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>
    290fc38d
paging_tmpl.h 14.5 KB