KVM: Shrink struct kvm_mmu_memory_cache
authorMathias Krause <minipli@grsecurity.net>
Fri, 17 Feb 2023 19:33:36 +0000 (20:33 +0100)
committerSean Christopherson <seanjc@google.com>
Thu, 23 Mar 2023 23:10:59 +0000 (16:10 -0700)
commitf530b531fb9e05eb134cfc334242799ea974d111
tree62c91a91b12e9ed73675789ca13b0b97aba9e5e4
parent14aa40a1d05ef27c42fdfacd5a81f5df6a49ee39
KVM: Shrink struct kvm_mmu_memory_cache

Move the 'capacity' member around to make use of the padding hole on 64
bit systems instead of introducing yet another one.

This allows us to save 8 bytes per instance for 64 bit builds of which,
e.g., x86's struct kvm_vcpu_arch has a few.

Signed-off-by: Mathias Krause <minipli@grsecurity.net>
Link: https://lore.kernel.org/r/20230217193336.15278-3-minipli@grsecurity.net
Signed-off-by: Sean Christopherson <seanjc@google.com>
include/linux/kvm_types.h