mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
KVM: arm64: vgic-v5: Move PPI caps into kvm_vgic_global_state
Constant vgic properties are usually kept in kvm_vgic_global_state, but the vgic-v5 code does its own thing. Move the ppi_caps data into the global structure, which has the modest additional advantage of making it ro_after_init. Link: https://lore.kernel.org/r/20260520091949.542365-3-maz@kernel.org Signed-off-by: Marc Zyngier <maz@kernel.org>
This commit is contained in:
parent
09a4b56100
commit
2e83ac3b3b
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
#include "vgic.h"
|
||||
|
||||
static struct vgic_v5_ppi_caps ppi_caps;
|
||||
#define ppi_caps kvm_vgic_global_state.vgic_v5_ppi_caps
|
||||
|
||||
/*
|
||||
* Not all PPIs are guaranteed to be implemented for GICv5. Deterermine which
|
||||
|
|
|
|||
|
|
@ -177,6 +177,11 @@ struct vgic_global {
|
|||
bool has_gcie_v3_compat;
|
||||
|
||||
u32 ich_vtr_el2;
|
||||
|
||||
/* GICv5 PPI capabilities */
|
||||
struct {
|
||||
DECLARE_BITMAP(impl_ppi_mask, VGIC_V5_NR_PRIVATE_IRQS);
|
||||
} vgic_v5_ppi_caps;
|
||||
};
|
||||
|
||||
extern struct vgic_global kvm_vgic_global_state;
|
||||
|
|
@ -492,11 +497,6 @@ struct vgic_v5_cpu_if {
|
|||
struct gicv5_vpe gicv5_vpe;
|
||||
};
|
||||
|
||||
/* What PPI capabilities does a GICv5 host have */
|
||||
struct vgic_v5_ppi_caps {
|
||||
DECLARE_BITMAP(impl_ppi_mask, VGIC_V5_NR_PRIVATE_IRQS);
|
||||
};
|
||||
|
||||
struct vgic_cpu {
|
||||
/* CPU vif control registers for world switch */
|
||||
union {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user