libxl: don't needlessly report "highmem" in use
authorJan Beulich <jbeulich@suse.com>
Wed, 8 Jan 2020 14:04:36 +0000 (15:04 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 8 Jan 2020 14:04:36 +0000 (15:04 +0100)
commit3840e98f3e72b7b92071089a042cd7cf5be72732
tree10241a5f2557cc60560b6e67a95922f77e457e84
parentfe4df51ff776c8e543879ed552ace34d217e048d
libxl: don't needlessly report "highmem" in use

Due to the unconditional updating of dom->highmem_end in
libxl__domain_device_construct_rdm() I've observed on a 2Gb HVM guest
with a passed through device (without overly large BARs, and with no RDM
ranges at all)

(d2) RAM in high memory; setting high_mem resource base to 100000000
...
(d2) E820 table:
(d2)  [00]: 00000000:00000000 - 00000000:000a0000: RAM
(d2)  HOLE: 00000000:000a0000 - 00000000:000d0000
(d2)  [01]: 00000000:000d0000 - 00000000:00100000: RESERVED
(d2)  [02]: 00000000:00100000 - 00000000:7f800000: RAM
(d2)  HOLE: 00000000:7f800000 - 00000000:fc000000
(d2)  [03]: 00000000:fc000000 - 00000001:00000000: RESERVED
(d2)  [04]: 00000001:00000000 - 00000001:00000000: RAM

both of which aren't really appropriate in this case. Arrange for this
to not happen.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Liu <wl@xen.org>
tools/libxl/libxl_dm.c