Re: [PATCH v4 3/3] KVM: x86/mmu: Add detailed page size stats

From: Paolo Bonzini
Date: Wed Aug 11 2021 - 07:36:19 EST


On 03/08/21 06:46, Mingwei Zhang wrote:
+ union {
+ struct {
+ atomic64_t pages_4k;
+ atomic64_t pages_2m;
+ atomic64_t pages_1g;
+ atomic64_t pages_512g;
+ };
+ atomic64_t pages[4];
+ };
u64 nx_lpage_splits;

This array can use KVM_NR_PAGE_SIZES as the size.

Queued, thanks!

Paolo