linux-yocto/arch/powerpc/kvm
Nam Cao 2743cf75f7 powerpc, ocxl: Fix extraction of struct xive_irq_data
Commit cc0cc23bab ("powerpc/xive: Untangle xive from child interrupt
controller drivers") changed xive_irq_data to be stashed to chip_data
instead of handler_data. However, multiple places are still attempting to
read xive_irq_data from handler_data and get a NULL pointer deference bug.

Update them to read xive_irq_data from chip_data.

Non-XIVE files which touch xive_irq_data seem quite strange to me,
especially the ocxl driver. I think there ought to be an alternative
platform-independent solution, instead of touching XIVE's data directly.
Therefore, I think this whole thing should be cleaned up. But perhaps I
just misunderstand something. In any case, this cleanup would not be
trivial; for now, just get things working again.

Fixes: cc0cc23bab ("powerpc/xive: Untangle xive from child interrupt controller drivers")
Reported-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Closes: https://lore.kernel.org/linuxppc-dev/68e48df8.170a0220.4b4b0.217d@mx.google.com/
Signed-off-by: Nam Cao <namcao@linutronix.de>
Reviewed-by: Ganesh Goudar <ganeshgr@linux.ibm.com>
Acked-by: Andrew Donnellan <ajd@linux.ibm.com>  # ocxl
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20251008081359.1382699-1-namcao@linutronix.de
2025-10-13 09:40:55 +05:30
..
book3s_32_mmu_host.c powerpc/vmlinux: Remove etext, edata and end 2025-02-24 12:26:21 +05:30
book3s_32_mmu.c
book3s_32_sr.S
book3s_64_entry.S docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
book3s_64_mmu_host.c KVM: PPC: Use kvm_faultin_pfn() to handle page faults on Book3s PR 2024-10-25 13:00:49 -04:00
book3s_64_mmu_hv.c KVM: PPC: Use __kvm_faultin_pfn() to handle page faults on Book3s HV 2024-10-25 13:00:48 -04:00
book3s_64_mmu_radix.c KVM: PPC: Drop unused @kvm_ro param from kvmppc_book3s_instantiate_page() 2024-10-25 13:00:48 -04:00
book3s_64_mmu.c
book3s_64_slb.S
book3s_64_vio.c fdget(), trivial conversions 2024-11-03 01:28:06 -05:00
book3s_emulate.c powerpc: rename SPRN_HID2 define to SPRN_HID2_750FX 2024-05-08 00:25:00 +10:00
book3s_exports.c
book3s_hv_builtin.c KVM: PPC: Book3S HV: Introduce low level MSR accessor 2023-09-14 22:04:24 +10:00
book3s_hv_hmi.c
book3s_hv_interrupts.S
book3s_hv_nested.c The biggest change here is eliminating the awful idea that KVM had, of 2024-11-23 16:00:50 -08:00
book3s_hv_nestedv2.c kvm powerpc/book3s-apiv2: Add support for Hostwide GSB elements 2025-04-16 22:16:09 +05:30
book3s_hv_p9_entry.c KVM: PPC: Use accessors for VCPU registers 2023-09-14 22:04:24 +10:00
book3s_hv_p9_perf.c
book3s_hv_ras.c KVM: PPC: Use accessors for VCORE registers 2023-09-14 22:04:24 +10:00
book3s_hv_rm_mmu.c KVM: PPC: Always use the GPR accessors 2023-09-14 22:04:23 +10:00
book3s_hv_rm_xics.c genirq: Convert kstat_irqs to a struct 2024-04-12 17:08:05 +02:00
book3s_hv_rmhandlers.S powerpc: Fix 'intra_function_call not a direct call' warning 2025-03-10 10:00:17 +05:30
book3s_hv_tm_builtin.c
book3s_hv_tm.c
book3s_hv_uvmem.c mm: update architecture and driver code to use vm_flags_t 2025-07-09 22:42:14 -07:00
book3s_hv.c KVM: PPC: Book3S HV: Fix IRQ map warnings with XICS on pSeries KVM Guest 2025-05-12 10:19:29 +05:30
book3s_hv.h KVM: PPC: Book3S HV: Add one-reg interface for HASHPKEYR register 2024-06-06 22:39:04 +10:00
book3s_interrupts.S
book3s_mmu_hpte.c KVM: PPC: replace call_rcu by kfree_rcu for simple kmem_cache_free callback 2024-10-16 10:40:31 +11:00
book3s_paired_singles.c
book3s_pr_papr.c
book3s_pr.c KVM: PPC: Use kvm_vcpu_map() to map guest memory to patch dcbz instructions 2024-10-25 13:00:49 -04:00
book3s_rmhandlers.S
book3s_rtas.c
book3s_segment.S
book3s_xics.c
book3s_xics.h
book3s_xive_native.c KVM: Drop KVM_ERR_PTR_BAD_PAGE and instead return NULL to indicate an error 2024-10-25 12:54:42 -04:00
book3s_xive.c powerpc, ocxl: Fix extraction of struct xive_irq_data 2025-10-13 09:40:55 +05:30
book3s_xive.h
book3s.c KVM: PPC: Use kvm_faultin_pfn() to handle page faults on Book3s PR 2024-10-25 13:00:49 -04:00
book3s.h KVM: delete .change_pte MMU notifier callback 2024-04-11 13:18:27 -04:00
booke_emulate.c
booke_interrupts.S
booke.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
booke.h
bookehv_interrupts.S
e500_emulate.c
e500_mmu_host.c KVM: e500: perform hugepage check after looking up the PFN 2025-01-12 10:53:00 +01:00
e500_mmu_host.h
e500_mmu.c
e500.c
e500.h KVM: e500: track host-writability of pages 2025-01-12 10:35:41 +01:00
e500mc.c powerpc/inst: add PPC_TLBILX_LPID 2023-08-16 23:54:48 +10:00
emulate_loadstore.c KVM: PPC: Reduce reliance on analyse_instr() in mmio emulation 2023-12-07 23:33:08 +11:00
emulate.c
fpu.S
guest-state-buffer.c kvm powerpc/book3s-apiv2: Add support for Hostwide GSB elements 2025-04-16 22:16:09 +05:30
Kconfig kvm powerpc/book3s-apiv2: Introduce kvm-hv specific PMU 2025-04-16 22:16:09 +05:30
Makefile KVM: PPC: Add support for nestedv2 guests 2023-09-14 22:04:24 +10:00
mpic.c
powerpc.c KVM: PPC: Fix misleading interrupts comment in kvmppc_prepare_to_enter() 2025-08-20 13:51:26 +05:30
test-guest-state-buffer.c kvm powerpc/book3s-apiv2: Add kunit tests for Hostwide GSB elements 2025-04-16 22:16:09 +05:30
timing.c
timing.h KVM: powerpc: Enable commented out BUILD_BUG_ON() assertion 2025-04-16 22:19:38 +05:30
tm.S powerpc: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-16 23:54:48 +10:00
trace_book3s.h KVM: PPC: Book3S HV: Add H_VIRT mapping for tracing exits 2025-06-23 09:58:06 +05:30
trace_booke.h
trace_hv.h KVM: PPC: Book3S HV: Fix kmv -> kvm typo 2024-11-14 22:22:30 +11:00
trace_pr.h
trace.h