xen/mapcache: introduce xen_replace_cache_entry()
commit5ba3d7564593c55292056ef5af84d50b55ebcf0e
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Mon, 10 Jul 2017 22:40:02 +0000 (10 23:40 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 18 Jul 2017 21:16:09 +0000 (18 14:16 -0700)
treed5ff65b3661561716f52d189f6945d1e2dac1e5c
parent759235653de427e4e7b62d8e6fb1ef9cb68bac7d
xen/mapcache: introduce xen_replace_cache_entry()

This new call is trying to update a requested map cache entry
according to the changes in the physmap. The call is searching
for the entry, unmaps it and maps again at the same place using
a new guest address. If the mapping is dummy this call will
make it real.

This function makes use of a new xenforeignmemory_map2() call
with an extended interface that was recently introduced in
libxenforeignmemory [1].

[1] https://www.mail-archive.com/xen-devel@lists.xen.org/msg113007.html

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>
configure
hw/i386/xen/xen-mapcache.c
include/hw/xen/xen_common.h
include/sysemu/xen-mapcache.h