Skip to contentSkip to conversation

rmap: add new exported function: page_wrprotect()

RFC PATCH In review Izik Eidus 2 participants 2 messages Jan 21, 2008 – Jan 23, 2008

Subsystems (3)
lore
Share & tools
lore

Izik Eidus

author
#0 lore raw

RFC PATCH 1/5 rmap: add new exported function: page_wrprotect()

Quoted 1 line

From 45e5a255b004e0d578007576304a6b1e272fcb67 Mon Sep 17 00:00:00 2001

From: Izik Eidus <izike-atKUWr5tajBWk0Htik3J/[email protected]>
Date: Mon, 21 Jan 2008 16:59:35 +0200
Subject: [PATCH] rmap: add new exported function: page_wrprotect(),
page_wrprotect() make the page as read only by setting the ptes point to it as read only.

---
 include/linux/rmap.h |    7 ++++
 mm/rmap.c            |   91 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 98 insertions(+), 0 deletions(-)
include/linux/rmap.h +7 -0
index 97347f2..dac41af 100644
@@ -108,6 +108,8 @@ unsigned long page_address_in_vma(struct page *, struct vm_area_struct *);
  */
 int page_mkclean(struct page *);
 
+int page_wrprotect(struct page *page);
+
 #else	/* !CONFIG_MMU */
 
 #define anon_vma_init()		do {} while (0)
@@ -122,6 +124,11 @@ static inline int page_mkclean(struct page *page)
 	return 0;
 }
 
+static inline int page_wrprotect(struct page *page)
+{
+	return 0;
+}
+
 
 #endif	/* CONFIG_MMU */
 
mm/rmap.c +91 -0

97 lines not on this page · raw message

Signature · 1 line
1.5.3.6

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Acked-by on v1 1/5
#1 lore raw
Quoted 1 line · On Mon, 21 Jan 2008 18:09:29 +0200 Izik Eidus…
Signature · 6 lines
All rights reversed.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/