Skip to content

KVM: Minor structure layout changes

Mathias Krause kvm lkml 2 versions – Applied

Status from this message: Applied patch 1 to kvm-x86 pmu, and patch 2 to generic, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesApplied
  2. v15 patches 8 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: x86: Shrink struct kvm_pmuarch/x86/include/asm/kvm_host.h+1 -10 replies
2/2KVM: Shrink struct kvm_mmu_memory_cacheinclude/linux/kvm_types.h+1 -12 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] KVM: Minor structure layout changes

v1: https://lore.kernel.org/kvm/[email protected]/

This used to be a more exhaustive patch set shrinking kvm_vcpu's size. But we concluded that this would be too fragile to maintain and would require a more radical layout change to group often used members together instead of chopping off individual padding bytes.

The remaining two patches are nonetheless useful, as they either make the structure layout a more natural fit (as for kvm_pmu, putting the version atop) or removing pointless padding (kvm_mmu_memory_cache).

Please apply!

Thanks,

Mathias Krause (2):
KVM: x86: Shrink struct kvm_pmu
KVM: Shrink struct kvm_mmu_memory_cache

 arch/x86/include/asm/kvm_host.h | 2 +-
 include/linux/kvm_types.h       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.39.1