xen: don't use xenstore to save/restore physmap anymore
commit331b5189d756d431b1d18ae7097527ba3d3ea809
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Mon, 10 Jul 2017 22:40:03 +0000 (10 23:40 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 18 Jul 2017 21:16:52 +0000 (18 14:16 -0700)
treea891dc3006d2241e326b5b541a3538374d2f19ec
parent5ba3d7564593c55292056ef5af84d50b55ebcf0e
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>
hw/i386/xen/xen-hvm.c
hw/i386/xen/xen-mapcache.c
include/hw/xen/xen_common.h