ppc/pnv: Loop on the threads of the chip to find a matching NVT
authorCédric Le Goater <clg@kaod.org>
Mon, 25 Nov 2019 06:58:04 +0000 (07:58 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 16 Dec 2019 23:39:47 +0000 (10:39 +1100)
commitfeecc6a0435d46da45b2d383693fe1292043606c
treeb555bea9db5c6a92a9dff56096d8708ae9fb5f82
parent4fa28f23906dc268c4c3be3236f15a4de1093c18
ppc/pnv: Loop on the threads of the chip to find a matching NVT

CPU_FOREACH() loops on all the CPUs of the machine which is incorrect.
Each XIVE Presenter should scan only the HW threads of the chip it
belongs to.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20191125065820.927-5-clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/pnv_xive.c