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] Abstract writes to phys_to_machine_mapping

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Abstract writes to phys_to_machine_mapping
From: Jacob Gorm Hansen <jacobg@xxxxxxx>
Date: Thu, 10 Nov 2005 14:11:18 +0100
Delivery-date: Thu, 10 Nov 2005 13:11:26 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:mime-version:content-type; b=GVcDlw9NvXrkLdYe1X2/Aj9HydMeLk06sDRcEPR4gFOWT401q9oksYsCNjU5PWI38xEsosH0G6TD8zj7//qlOUvJ0haVXe+0e9L3+3hm1PIovTlPbp+7fWxHZ9Cpi55YlprPpty8tlL4fgldOxjt3LUNHPtQZOK1XSLzGzZxMNY=
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
hi,

for my self-migration patch, I need the ability to trap writes to the
p2m map during migration, because I keep a dictionary mapping mfns to
pfns, which I use for remapping the page tables once I am on the other
side.

The attached patch abstracts writes through an inline function defined
in page.h.

diffstat:
 arch/xen/i386/mm/hypervisor.c   |   14 +++++++-------
 drivers/xen/balloon/balloon.c   |    7 +++----
 drivers/xen/blkback/blkback.c   |    6 +++---
 drivers/xen/blktap/blktap.c     |    4 ++--
 drivers/xen/netback/netback.c   |    8 +++-----
 drivers/xen/netfront/netfront.c |    5 ++---
 drivers/xen/tpmback/tpmback.c   |    6 +++---
 include/asm-xen/asm-i386/page.h |    4 ++++
 8 files changed, 27 insertions(+), 27 deletions(-)

best,
Jacob
--
Save time and bandwidth with EDelta: http://www.diku.dk/~jacobg/edelta/

Attachment: abstract_setp2m.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Abstract writes to phys_to_machine_mapping, Jacob Gorm Hansen <=