[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Abstract writes to phys_to_machine_mapping


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.