x86/paravirt: add pte_flags to just get pte flags
authorJeremy Fitzhardinge <jeremy@goop.org>
Mon, 26 May 2008 22:31:06 +0000 (23:31 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 27 May 2008 08:11:36 +0000 (10:11 +0200)
commita15af1c9ea2750a9ff01e51615c45950bad8221b
treeb4167c16c23365d016180b20248c724902e0c954
parent239d1fc04ed0b58d638096b12a7f6d50269d30c9
x86/paravirt: add pte_flags to just get pte flags

Add pte_flags() to extract the flags from a pte.  This is a special
case of pte_val() which is only guaranteed to return the pte's flags
correctly; the page number may be corrupted or missing.

The intent is to allow paravirt implementations to return pte flags
without having to do any translation of the page number (most notably,
Xen).

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/paravirt.c
arch/x86/xen/enlighten.c
drivers/lguest/lg.h
include/asm-x86/page.h
include/asm-x86/paravirt.h
include/asm-x86/pgtable.h