Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/arch/arm64/kvm/vgic/vgic-v3.c b/arch/arm64/kvm/vgic/vgic-v3.c
- --- a/arch/arm64/kvm/vgic/vgic-v3.c
- +++ b/arch/arm64/kvm/vgic/vgic-v3.c
- @@ -838,6 +838,19 @@
- (read_sysreg_s(SYS_ICH_VTR_EL2) & ICH_VTR_EL2_SEIS));
- }
- +/*
- + * TODO write explanation here before send upstream im too tired !!
- + */
- +static const struct midr_range broken_lpi_eoi[] = {
- + /* M3 Pro efficiency and performance cores, respectively. */
- + MIDR_ALL_VERSIONS(MIDR_CPU_MODEL(ARM_CPU_IMP_APPLE, 0x044)),
- + MIDR_ALL_VERSIONS(MIDR_CPU_MODEL(ARM_CPU_IMP_APPLE, 0x045)),
- + {},
- +};
- +
- void noinstr kvm_compute_ich_hcr_trap_bits(struct alt_instr *alt,
- __le32 *origptr, __le32 *updptr,
- int nr_inst)
- @@ -856,6 +869,10 @@
- group1_trap = true;
- dir_trap = true;
- }
- +
- + if (is_kernel_in_hyp_mode() &&
- + is_midr_in_range_list(broken_lpi_eoi))
- + group1_trap = true;
- if (!cpus_have_cap(ARM64_HAS_ICH_HCR_EL2_TDIR))
- common_trap = true;
Advertisement
Add Comment
Please, Sign In to add comment