Displaying 2 results from an estimated 2 matches for "map_frames".
2007 Feb 15
2
Mapping foreign frames from dom0
Hello,
I am hacking on a Mini-OS that is able to run as domain 0 and is able to
start a guest (another Mini-OS for now). I was able to get a memory
allocated to the guest and am now trying to build its pagetable and
after that copy the kernel to the right places. The problem is:
Given a machine frame number from a memory frame of the guest, how do I
conceptionally map this into
2008 Jan 18
0
[PATCH] minios: support COW for a zero page
...extras/mini-os/include/ia64/arch_mm.h
--- a/extras/mini-os/include/ia64/arch_mm.h Fri Jan 18 15:55:13 2008 +0000
+++ b/extras/mini-os/include/ia64/arch_mm.h Fri Jan 18 16:02:32 2008 +0000
@@ -37,5 +37,7 @@
#define STACK_SIZE (PAGE_SIZE * (1 << STACK_SIZE_PAGE_ORDER))
#define map_frames(f, n) map_frames_ex(f, n, 1, 0, 1, DOMID_SELF, 0, 0)
+/* TODO */
+#define map_zero(n, a) map_frames_ex(NULL, n, 0, 0, a, DOMID_SELF, 0, 0)
#endif /* __ARCH_MM_H__ */
diff -r 27ad7ed41be2 extras/mini-os/include/types.h
--- a/extras/mini-os/include/types.h Fri Jan 18 15:55:13 2008 +0000
+++ b/extr...