]> git.ipfire.org Git - thirdparty/qemu.git/commit
ppc/xive: Check TIMA operations validity
authorNicholas Piggin <npiggin@gmail.com>
Mon, 12 May 2025 03:10:52 +0000 (13:10 +1000)
committerCédric Le Goater <clg@redhat.com>
Mon, 21 Jul 2025 06:03:53 +0000 (08:03 +0200)
commitca0081ef7ece566e877e9f4ceab9e9988d08fb78
tree67977283225bc1a4ada8b59f0abb22f2a068cc57
parent565e6d4d2151e856026ee60d16c12a61e667cd15
ppc/xive: Check TIMA operations validity

Certain TIMA operations should only be performed when a ring is valid,
others when the ring is invalid, and they are considered undefined if
used incorrectly. Add checks for this condition.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Glenn Miles <milesg@linux.ibm.com>
Reviewed-by: Michael Kowal <kowal@linux.ibm.com>
Tested-by: Gautam Menghani <gautam@linux.ibm.com>
Link: https://lore.kernel.org/qemu-devel/20250512031100.439842-44-npiggin@gmail.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/intc/xive.c
include/hw/ppc/xive.h