Ross Lagerwall 2cbf890353 xen: Use newly added dmops for mapping VGA memory
Xen unstable (to be in 4.11) has two new dmops, relocate_memory and
pin_memory_cacheattr. Use these to set up the VGA memory, replacing the
previous calls to libxc. This allows the VGA console to work properly
when QEMU is running restricted (-xen-domid-restrict).

Wrapper functions are provided to allow QEMU to work with older versions
of Xen.

Tweak the error handling while making this change:
* Report pin_memory_cacheattr errors.
* Report errors even when DEBUG_HVM is not set. This is useful for
trying to understand why VGA is not working, since otherwise it just
fails silently.
* Fix the return values when an error occurs. The functions now
consistently return -1 and set errno.

CC: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
2018-04-26 16:29:51 +01:00
..
2016-10-04 13:28:07 +01:00
2017-01-27 18:07:59 +01:00
2018-03-01 11:05:45 +00:00
2018-03-06 13:16:29 +11:00
2016-05-18 15:04:27 +03:00
2018-02-09 05:05:11 +01:00
2018-02-09 05:05:11 +01:00
2018-03-08 15:49:23 +01:00
2017-01-27 18:07:59 +01:00
2018-03-13 11:17:31 -06:00
2018-02-09 05:05:11 +01:00
2017-01-27 18:07:59 +01:00
2017-04-24 12:32:12 +01:00
2017-06-01 18:49:22 +02:00