xen-devel
[Xen-devel] [patch 16/33] xen: 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>
---
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 09/33] xen: Add nosegneg capability to the vsyscall page notes, (continued)
- [Xen-devel] [patch 09/33] xen: Add nosegneg capability to the vsyscall page notes, Jeremy Fitzhardinge
- [Xen-devel] [patch 17/33] xen: Complete pagetable pinning for Xen, Jeremy Fitzhardinge
- [Xen-devel] [patch 19/33] xen: Account for time stolen by Xen, Jeremy Fitzhardinge
- [Xen-devel] [patch 24/33] xen: xen: hack to prevent bad segment register reload, Jeremy Fitzhardinge
- [Xen-devel] [patch 12/33] xen: Xen virtual mmu, Jeremy Fitzhardinge
- [Xen-devel] [patch 13/33] xen: xen event channels, Jeremy Fitzhardinge
- [Xen-devel] [patch 15/33] xen: xen configuration, Jeremy Fitzhardinge
- [Xen-devel] [patch 18/33] xen: xen: ignore RW mapping of RO pages in pagetable_init, Jeremy Fitzhardinge
- [Xen-devel] [patch 20/33] xen: Implement xen_sched_clock, Jeremy Fitzhardinge
- [Xen-devel] [patch 14/33] xen: xen time implementation, Jeremy Fitzhardinge
- [Xen-devel] [patch 16/33] xen: xen: add pinned page flag,
Jeremy Fitzhardinge <=
- [Xen-devel] [patch 11/33] xen: Core Xen implementation, Jeremy Fitzhardinge
- [Xen-devel] [patch 22/33] xen: Add support for preemption, Jeremy Fitzhardinge
- [Xen-devel] [patch 23/33] xen: xen: lazy-mmu operations, Jeremy Fitzhardinge
- [Xen-devel] [patch 26/33] xen: Add Xen grant table support, Jeremy Fitzhardinge
- [Xen-devel] [patch 29/33] xen: Add the Xen virtual network device driver., Jeremy Fitzhardinge
- [Xen-devel] [patch 31/33] xen: xen: handle external requests for shutdown, reboot and sysrq, Jeremy Fitzhardinge
- [Xen-devel] [patch 21/33] xen: Xen SMP guest support, Jeremy Fitzhardinge
- [Xen-devel] [patch 28/33] xen: Add Xen virtual block device driver., Jeremy Fitzhardinge
- [Xen-devel] [patch 33/33] xen: Attempt to patch inline versions of common operations, Jeremy Fitzhardinge
- [Xen-devel] [patch 10/33] xen: Add Xen interface header files, Jeremy Fitzhardinge
|
|
|