[IA64] stubs for populate on demand.
authorIsaku Yamahata <yamahata@valinux.co.jp>
Wed, 7 Jan 2009 03:19:36 +0000 (12:19 +0900)
committerIsaku Yamahata <yamahata@valinux.co.jp>
Wed, 7 Jan 2009 03:19:36 +0000 (12:19 +0900)
add stub functions of populate on demand to compile.
This patch fixes the following compile error.

> xen/common/built_in.o: In function `populate_physmap':
> xen/common/memory.c:116: undefined reference to `guest_physmap_mark_populate_on_demand'
> xen/common/built_in.o: In function `decrease_reservation':
> xen/common/memory.c:205: undefined reference to `p2m_pod_decrease_reservation'

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen/arch/ia64/xen/mm.c

index 518d225c5ac70fc18e7c6295b6a3397d19b33bec..4772749d1b48671eb1821e078b8979a1272bf35c 100644 (file)
@@ -3468,6 +3468,23 @@ void xencomm_mark_dirty(unsigned long addr, unsigned int len)
     __xencomm_mark_dirty(current->domain, addr, len);
 }
 
+/* stubs for populate on demand */
+int
+guest_physmap_mark_populate_on_demand(struct domain *d, unsigned long gfn,
+                                      unsigned int order)
+{
+    gdprintk(XENLOG_WARNING, "populate on demand isn't supported yet\n");
+    return -ENOSYS;
+}
+
+int
+p2m_pod_decrease_reservation(struct domain *d, xen_pfn_t gpfn,
+                             unsigned int order)
+{
+    gdprintk(XENLOG_WARNING, "populate on demand isn't supported yet\n");
+    return 1;
+}
+
 /*
  * Local variables:
  * mode: C