tools/console: use xenforeigmemory to map console ring
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 22 Sep 2021 08:21:18 +0000 (10:21 +0200)
committerIan Jackson <iwj@xenproject.org>
Mon, 11 Oct 2021 11:05:38 +0000 (12:05 +0100)
commite8b42a4e8810844ccffd2eab072921b1e4e2ed79
treeafacfc5ab98c0e45d71405f6b95c26e51312b661
parent2fac4e3ea3bb301f87426e24b9dfd765c22c9cf9
tools/console: use xenforeigmemory to map console ring

This patch replaces the usage of xc_map_foreign_range with
xenforeignmemory_map from the stable xenforeignmemory library. Note
there are still other uses of libxc functions which prevents removing
the dependency.

No functional change intended.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Ian Jackson <iwj@xenproject.org>
tools/console/Makefile
tools/console/daemon/io.c