KVM: x86/mmu: use helper macro SPTE_ENT_PER_PAGE
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 13 Sep 2022 08:54:52 +0000 (16:54 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Nov 2022 17:31:14 +0000 (12:31 -0500)
commit3adbdf81038801ee84367845e78bb1a3b36bde39
treea42e03e6836b29d8848402609f19ef76d5794676
parentfa3e42037ef53c2aea85faf51d6f947e16dd8fc5
KVM: x86/mmu: use helper macro SPTE_ENT_PER_PAGE

Use helper macro SPTE_ENT_PER_PAGE to get the number of spte entries
per page. Minor readability improvement.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220913085452.25561-1-linmiaohe@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c