Skip to content
Commit cd4220d2 authored by Christian Borntraeger's avatar Christian Borntraeger
Browse files

KVM: selftests: do not require 64GB in set_memory_region_test



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>
parent fb5dad40
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment