WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] xenpaging: call pageout policy function in xenpaging

To: Patrick Colp <pjcolp@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] xenpaging: call pageout policy function in xenpaging_evict_page
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Tue, 24 Aug 2010 11:38:25 +0200
Cc:
Delivery-date: Tue, 24 Aug 2010 02:39:16 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1282642708; l=725; s=domk; d=aepfle.de; h=Content-Type:MIME-Version:Subject:To:From:Date:X-RZG-CLASS-ID: X-RZG-AUTH; bh=jSrJL337lehFRbrxxCVAnBXZiuE=; b=IP7xaVLjimcOfJwUgrlW5A9kejLzPxkToE/Gbf3odQDGs05HxL/mZpqnODmFUvcl4dT Q7l3XNW1GtQV1y309zXpt9DGO9nuljRQK8h3R9yJclrXjdVLF9O19vcDFbLgORbkJDwv3 +1PGKesIf5EeEAS4pB0niRcBoETnWg4/JFo=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
Notify policy about a page that was just paged out to disk.
Up to now the code called the opposite function, which clears the
(xenpaging internal) reference bit, instead of setting it and marking
the page as gone.

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

--- xen-unstable.hg-4.1.21976.orig/tools/xenpaging/xenpaging.c
+++ xen-unstable.hg-4.1.21976/tools/xenpaging/xenpaging.c
@@ -361,8 +361,8 @@ int xenpaging_evict_page(xc_interface *x
         goto out;
     }
 
-    /* Notify policy of page being paged in */
-    policy_notify_paged_in(paging->mem_event.domain_id, victim->gfn);
+    /* Notify policy of page being paged out */
+    policy_notify_paged_out(paging->mem_event.domain_id, victim->gfn);
 
  out:
     return ret;

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>