mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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 <igor.druzhinin@citrix.com> Reviewed-by: Paul Durrant <paul.durrant@citrix.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
parent
5ba3d75645
commit
331b5189d7
3 changed files with 41 additions and 12 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue