Guest User

Untitled

a guest
Oct 4th, 2026
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. diff --git a/arch/arm64/kvm/vgic/vgic-v3.c b/arch/arm64/kvm/vgic/vgic-v3.c
  2. --- a/arch/arm64/kvm/vgic/vgic-v3.c
  3. +++ b/arch/arm64/kvm/vgic/vgic-v3.c
  4. @@ -838,6 +838,19 @@
  5. (read_sysreg_s(SYS_ICH_VTR_EL2) & ICH_VTR_EL2_SEIS));
  6. }
  7.  
  8. +/*
  9. + * TODO write explanation here before send upstream im too tired !!
  10. + */
  11. +static const struct midr_range broken_lpi_eoi[] = {
  12. + /* M3 Pro efficiency and performance cores, respectively. */
  13. + MIDR_ALL_VERSIONS(MIDR_CPU_MODEL(ARM_CPU_IMP_APPLE, 0x044)),
  14. + MIDR_ALL_VERSIONS(MIDR_CPU_MODEL(ARM_CPU_IMP_APPLE, 0x045)),
  15. + {},
  16. +};
  17. +
  18. void noinstr kvm_compute_ich_hcr_trap_bits(struct alt_instr *alt,
  19. __le32 *origptr, __le32 *updptr,
  20. int nr_inst)
  21. @@ -856,6 +869,10 @@
  22. group1_trap = true;
  23. dir_trap = true;
  24. }
  25. +
  26. + if (is_kernel_in_hyp_mode() &&
  27. + is_midr_in_range_list(broken_lpi_eoi))
  28. + group1_trap = true;
  29.  
  30. if (!cpus_have_cap(ARM64_HAS_ICH_HCR_EL2_TDIR))
  31. common_trap = true;
Advertisement
Add Comment
Please, Sign In to add comment