Re: [RFC PATCH v4 6/9] KVM: selftests: Add a helper to get system default hugetlb page size

2021-03-21 Thread wangyanan (Y)
On 2021/3/12 19:40, Andrew Jones wrote: On Tue, Mar 02, 2021 at 08:57:48PM +0800, Yanan Wang wrote: If HUGETLB is configured in the host kernel, then we can know the system default hugetlb page size through *cat /proc/meminfo*. Otherwise, we will not see the information of hugetlb pages in fil

Re: [RFC PATCH v4 6/9] KVM: selftests: Add a helper to get system default hugetlb page size

2021-03-12 Thread Andrew Jones
On Tue, Mar 02, 2021 at 08:57:48PM +0800, Yanan Wang wrote: > If HUGETLB is configured in the host kernel, then we can know the system > default hugetlb page size through *cat /proc/meminfo*. Otherwise, we will > not see the information of hugetlb pages in file /proc/meminfo if it's not > configure

[RFC PATCH v4 6/9] KVM: selftests: Add a helper to get system default hugetlb page size

2021-03-02 Thread Yanan Wang
If HUGETLB is configured in the host kernel, then we can know the system default hugetlb page size through *cat /proc/meminfo*. Otherwise, we will not see the information of hugetlb pages in file /proc/meminfo if it's not configured. So add a helper to determine whether HUGETLB is configured and th