]> git.ipfire.org Git - thirdparty/qemu.git/commit
ppc/xive2: Support crowd-matching when looking for target
authorFrederic Barrat <fbarrat@linux.ibm.com>
Tue, 11 Mar 2025 01:53:52 +0000 (11:53 +1000)
committerNicholas Piggin <npiggin@gmail.com>
Tue, 11 Mar 2025 12:43:31 +0000 (22:43 +1000)
commit1a3cc1209b4ca541e3b8f4fd360704e071e1e7bc
tree28e1ccab708ebfa9bf5fd475f3e96fa1e131ff11
parent96a2132ce95dab3e61002412839a118aecca0be0
ppc/xive2: Support crowd-matching when looking for target

XIVE crowd sizes are encoded into a 2-bit field as follows:
  0: 0b00
  2: 0b01
  4: 0b10
 16: 0b11

A crowd size of 8 is not supported.

If an END is defined with the 'crowd' bit set, then a target can be
running on different blocks. It means that some bits from the block
VP are masked when looking for a match. It is similar to groups, but
on the block instead of the VP index.

Most of the changes are due to passing the extra argument 'crowd' all
the way to the function checking for matches.

Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com>
Signed-off-by: Glenn Miles <milesg@linux.vnet.ibm.com>
Signed-off-by: Michael Kowal <kowal@linux.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
hw/intc/pnv_xive.c
hw/intc/pnv_xive2.c
hw/intc/spapr_xive.c
hw/intc/xive.c
hw/intc/xive2.c
hw/ppc/pnv.c
hw/ppc/spapr.c
include/hw/ppc/xive.h
include/hw/ppc/xive2.h