Re: [PATCH] KVM: selftests: do not require 64GB in set_memory_region_test

From: Zenghui Yu
Date: Fri Jul 02 2021 - 02:49:42 EST


On 2021/7/2 0:04, Christian Borntraeger wrote:
Unless the user sets overcommit_memory or has plenty of swap, the latest
changes to the testcase will result in ENOMEM failures for hosts with
less than 64GB RAM. As we do not use much of the allocated memory, we
can use MAP_NORESERVE to avoid this error.

Had a go on arm64:

Tested-by: Zenghui Yu <yuzenghui@xxxxxxxxxx>

Thanks,
Zenghui