[PATCH] Abstract writes to phys_to_machine_mapping

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Abstract writes to phys_to_machine_mapping

Jacob Gorm Hansen
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/

_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xensource.com/xen-devel

abstract_setp2m.patch (7K) Download Attachment