]> xenbits.xensource.com Git - xen.git/commit
hvmloader: avoid tests when they would clobber used memory
authorJan Beulich <jbeulich@suse.com>
Fri, 9 Jun 2017 11:51:34 +0000 (13:51 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 9 Jun 2017 11:51:34 +0000 (13:51 +0200)
commit164c34dd23bc3ea8d5285752d9270627a93c91f5
tree35e3cd5b543e46d1cf28e19d0838eb3c2da26c2b
parentda743dc82adffd36ce2d71776f4ea5afbc186a15
hvmloader: avoid tests when they would clobber used memory

First of all limit the memory range used for testing to 4Mb: There's no
point placing page tables right above 8Mb when they can equally well
live at the bottom of the chunk at 4Mb - rep_io_test() cares about the
5Mb...7Mb range only anyway. In a subsequent patch this will then also
allow simply looking for an unused 4Mb range (instead of using a build
time determined one).

Extend the "skip tests" condition beyond the "is there enough memory"
question.

Reported-by: Charles Arnold <carnold@suse.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Tested-by: Gary Lin <glin@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: 0d6968635ce51a8ed7508ddcf17b3d13a462cb27
master date: 2017-05-19 16:04:38 +0200
tools/firmware/hvmloader/tests.c