• Jeremy Fitzhardinge's avatar
    [PATCH] i386: PARAVIRT: drop unused ptep_get_and_clear · 4cdd9c89
    Jeremy Fitzhardinge authored
    In shadow mode hypervisors, ptep_get_and_clear achieves the desired
    purpose of keeping the shadows in sync by issuing a native_get_and_clear,
    followed by a call to pte_update, which indicates the PTE has been
    modified.
    
    Direct mode hypervisors (Xen) have no need for this anyway, and will trap
    the update using writable pagetables.
    
    This means no hypervisor makes use of ptep_get_and_clear; there is no
    reason to have it in the paravirt-ops structure.  Change confusing
    terminology about raw vs. native functions into consistent use of
    native_pte_xxx for operations which do not invoke paravirt-ops.
    Signed-off-by: default avatarZachary Amsden <zach@vmware.com>
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    4cdd9c89
pgtable.h 17.5 KB