summaryrefslogtreecommitdiff
path: root/include/kvm
diff options
context:
space:
mode:
authorFuad Tabba <tabba@google.com>2022-05-10 09:57:08 +0000
committerMarc Zyngier <maz@kernel.org>2022-05-15 11:24:17 +0100
commite987a4c60f9755b2f7a19bf1b5ef2eb74c90579b (patch)
tree7205c1ae87642430800bac880003c9b20230954d /include/kvm
parent3cb8a091a7016be0ee5420ff6c1928972e3ce23e (diff)
KVM: arm64: Repack struct kvm_pmu to reduce size
struct kvm_pmu has 2 holes using 10 bytes. This is instantiated in all vcpus, so it adds up. Repack the structures to remove the holes. No functional change intended. Reviewed-by: Oliver Upton <oupton@google.com> Signed-off-by: Fuad Tabba <tabba@google.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20220510095710.148178-3-tabba@google.com
Diffstat (limited to 'include/kvm')
-rw-r--r--include/kvm/arm_pmu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/kvm/arm_pmu.h b/include/kvm/arm_pmu.h
index 20193416d214..eaa8290b116f 100644
--- a/include/kvm/arm_pmu.h
+++ b/include/kvm/arm_pmu.h
@@ -21,12 +21,12 @@ struct kvm_pmc {
};
struct kvm_pmu {
- int irq_num;
+ struct irq_work overflow_work;
struct kvm_pmc pmc[ARMV8_PMU_MAX_COUNTERS];
DECLARE_BITMAP(chained, ARMV8_PMU_MAX_COUNTER_PAIRS);
+ int irq_num;
bool created;
bool irq_level;
- struct irq_work overflow_work;
};
struct arm_pmu_entry {