Skip to content
Snippets Groups Projects
user avatar
Christian Borntraeger authored
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.

Cc: Zenghui Yu <yuzenghui@huawei.com>
Cc: vkuznets@redhat.com
Cc: wanghaibin.wang@huawei.com
Cc: stable@vger.kernel.org
Fixes: 309505dd ("KVM: selftests: Fix mapping length truncation in m{,un}map()")
Tested-by: default avatarZenghui Yu <yuzenghui@huawei.com>
Link: https://lore.kernel.org/kvm/20210701160425.33666-1-borntraeger@de.ibm.com/


Signed-off-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
cd4220d2