xen-devel
[Xen-devel] [patch 24/44] xen: add pinned page flag
Add a new definition for PG_owner_priv_1 to define PG_pinned on Xen
pagetable pages.
Signed-off-by: Jeremy Fitzhardinge <jeremy@xxxxxxxxxxxxx>
Signed-off-by: Chris Wright <chrisw@xxxxxxxxxxxx>
---
include/linux/page-flags.h | 5 +++++
1 file changed, 5 insertions(+)
===================================================================
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -93,6 +93,7 @@
/* PG_owner_priv_1 users should have descriptive aliases */
#define PG_checked PG_owner_priv_1 /* Used by some filesystems */
+#define PG_pinned PG_owner_priv_1 /* Xen pinned pagetable */
#if (BITS_PER_LONG > 32)
/*
@@ -170,6 +171,10 @@ static inline void SetPageUptodate(struc
#define PageChecked(page) test_bit(PG_checked, &(page)->flags)
#define SetPageChecked(page) set_bit(PG_checked, &(page)->flags)
#define ClearPageChecked(page) clear_bit(PG_checked, &(page)->flags)
+
+#define PagePinned(page) test_bit(PG_pinned, &(page)->flags)
+#define SetPagePinned(page) set_bit(PG_pinned, &(page)->flags)
+#define ClearPagePinned(page) clear_bit(PG_pinned, &(page)->flags)
#define PageReserved(page) test_bit(PG_reserved, &(page)->flags)
#define SetPageReserved(page) set_bit(PG_reserved, &(page)->flags)
--
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [patch 06/44] use elfnote.h to generate vsyscall notes., (continued)
- [Xen-devel] [patch 06/44] use elfnote.h to generate vsyscall notes., Jeremy Fitzhardinge
- [Xen-devel] [patch 13/44] paravirt: export __supported_pte_mask, Jeremy Fitzhardinge
- [Xen-devel] [patch 17/44] Add nosegneg capability to the vsyscall page notes, Jeremy Fitzhardinge
- [Xen-devel] [patch 14/44] Allocate and free vmalloc areas, Jeremy Fitzhardinge
- [Xen-devel] [patch 23/44] xen: configuration, Jeremy Fitzhardinge
- [Xen-devel] [patch 26/44] xen: ignore RW mapping of RO pages in pagetable_init, Jeremy Fitzhardinge
- [Xen-devel] [patch 22/44] xen: time implementation, Jeremy Fitzhardinge
- [Xen-devel] [patch 33/44] xen: use the hvc console infrastructure for Xen console, Jeremy Fitzhardinge
- [Xen-devel] [patch 24/44] xen: add pinned page flag,
Jeremy Fitzhardinge <=
- [Xen-devel] [patch 25/44] xen: Complete pagetable pinning, Jeremy Fitzhardinge
- [Xen-devel] [patch 21/44] xen: event channels, Jeremy Fitzhardinge
- [Xen-devel] [patch 38/44] xen: machine operations, Jeremy Fitzhardinge
- [Xen-devel] [patch 29/44] xen: SMP guest support, Jeremy Fitzhardinge
- [Xen-devel] [patch 31/44] xen: lazy-mmu operations, Jeremy Fitzhardinge
- [Xen-devel] [patch 42/44] xen: suppress abs symbol warnings for unused reloc pointers, Jeremy Fitzhardinge
- [Xen-devel] [patch 44/44] xen: disable all non-virtual drivers, Jeremy Fitzhardinge
- [Xen-devel] [patch 40/44] xen: Place vcpu_info structure into per-cpu memory, Jeremy Fitzhardinge
- [Xen-devel] [patch 43/44] xen: use iret directly when possible, Jeremy Fitzhardinge
- [Xen-devel] [patch 34/44] xen: Add grant table support, Jeremy Fitzhardinge
|
|
|