search for: __have_subarch_pte_write_functions

Displaying 3 results from an estimated 3 matches for "__have_subarch_pte_write_functions".

2007 Apr 18
1
[RFC, PATCH 19/24] i386 Vmi mmu changes
...#define __pte_to_swp_entry(pte) ((swp_entry_t) { (pte).pte_low }) #define __swp_entry_to_pte(x) ((pte_t) { (x).val }) +/* + * Certain architectures need to do special things when PTEs + * within a page table are directly modified. Thus, the following + * hook is made available. + */ +#ifndef __HAVE_SUBARCH_PTE_WRITE_FUNCTIONS +#define set_pte(pteptr, pteval) (*(pteptr) = pteval) +#define set_pmd(pmdptr, pmdval) (*(pmdptr) = (pmdval)) +#define ptep_get_and_clear(mm,addr,xp) __pte(xchg(&(xp)->pte_low, 0)) +#endif /* __HAVE_SUBARCH_PTE_WRITE_FUNCTIONS */ + +#define set_pte_atomic(pteptr, pteval) set_pte((pteptr), (p...
2007 Apr 18
1
[RFC, PATCH 19/24] i386 Vmi mmu changes
...#define __pte_to_swp_entry(pte) ((swp_entry_t) { (pte).pte_low }) #define __swp_entry_to_pte(x) ((pte_t) { (x).val }) +/* + * Certain architectures need to do special things when PTEs + * within a page table are directly modified. Thus, the following + * hook is made available. + */ +#ifndef __HAVE_SUBARCH_PTE_WRITE_FUNCTIONS +#define set_pte(pteptr, pteval) (*(pteptr) = pteval) +#define set_pmd(pmdptr, pmdval) (*(pmdptr) = (pmdval)) +#define ptep_get_and_clear(mm,addr,xp) __pte(xchg(&(xp)->pte_low, 0)) +#endif /* __HAVE_SUBARCH_PTE_WRITE_FUNCTIONS */ + +#define set_pte_atomic(pteptr, pteval) set_pte((pteptr), (p...
2006 Mar 14
12
[RFC] VMI for Xen?
I''m sure everyone has seen the drop of VMI patches for Linux at this point, but just in case, the link is included below. I''ve read this version of the VMI spec and have made my way through most of the patches. While I wasn''t really that impressed with the first spec wrt Xen, the second version seems to be much more palatable. Specifically, the code inlining and