]> xenbits.xensource.com Git - xen.git/commit
hvmloader: avoid tests when they would clobber used memory
authorJan Beulich <jbeulich@suse.com>
Fri, 19 May 2017 14:04:38 +0000 (16:04 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 19 May 2017 14:04:38 +0000 (16:04 +0200)
commit0d6968635ce51a8ed7508ddcf17b3d13a462cb27
tree7d616acf2cd718bc63a85bb3c5e15d9f2fd53ccb
parent229ff3125b3d43c3fdc87c12c0047894395b5d32
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>
Release-acked-by: Julien Grall <julien.grall@arm.com>
tools/firmware/hvmloader/tests.c