From 331b5189d756d431b1d18ae7097527ba3d3ea809 Mon Sep 17 00:00:00 2001 From: Igor Druzhinin Date: Mon, 10 Jul 2017 23:40:03 +0100 Subject: xen: don't use xenstore to save/restore physmap anymore If we have a system with xenforeignmemory_map2() implemented we don't need to save/restore physmap on suspend/restore anymore. In case we resume a VM without physmap - try to recreate the physmap during memory region restore phase and remap map cache entries accordingly. The old code is left for compatibility reasons. Signed-off-by: Igor Druzhinin Reviewed-by: Paul Durrant Reviewed-by: Stefano Stabellini Signed-off-by: Stefano Stabellini --- include/hw/xen/xen_common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/hw/xen') diff --git a/include/hw/xen/xen_common.h b/include/hw/xen/xen_common.h index e28ed4846a..86c7f26106 100644 --- a/include/hw/xen/xen_common.h +++ b/include/hw/xen/xen_common.h @@ -80,6 +80,7 @@ extern xenforeignmemory_handle *xen_fmem; #if CONFIG_XEN_CTRL_INTERFACE_VERSION < 41000 +#define XEN_COMPAT_PHYSMAP static inline void *xenforeignmemory_map2(xenforeignmemory_handle *h, uint32_t dom, void *addr, int prot, int flags, size_t pages, -- cgit v1.2.3