For PV guests the pagetables reference the real MFNs rather than PFNs, so when
the guest is resumed into a different area of a hosts memory, these will need to
be rewritten.
PVH guests are auto-translated so no memory operation is needed.
Signed-off-by: Bruno Alvisio <bruno.alvisio@gmail.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
arch_remap_p2m(max_pfn);
}
+
+void arch_mm_pre_suspend(void)
+{
+ /* TODO: Pre suspend arch specific operations. */
+}
+
+void arch_mm_post_suspend(int canceled)
+{
+ /* TODO: Post suspend arch specific operations. */
+}
+#else
+void arch_mm_pre_suspend(void){ }
+
+void arch_mm_post_suspend(int canceled){ }
#endif
void arch_init_mm(unsigned long* start_pfn_p, unsigned long* max_pfn_p)
void arch_mm_preinit(void *p);
unsigned long alloc_virt_kernel(unsigned n_pages);
+void arch_mm_pre_suspend(void);
+void arch_mm_post_suspend(int canceled);
+
#ifndef CONFIG_PARAVIRT
void arch_print_memmap(void);
#endif