ppc/xive: Add support for the PC MMIOs
commitb68147b7a5bf6ea2c2b8a8830465e7e90bb2a77c
authorCédric Le Goater <clg@kaod.org>
Tue, 29 Aug 2023 14:32:36 +0000 (29 16:32 +0200)
committerCédric Le Goater <clg@kaod.org>
Wed, 6 Sep 2023 09:19:33 +0000 (6 11:19 +0200)
treee64c8aa11c434c1eec4ccb472ccbcd6ca454db2f
parentf2c1e591fa3adb964337daa85be1f86cd7a20a0a
ppc/xive: Add support for the PC MMIOs

The XIVE interrupt contoller maintains various fields on interrupt
targets in a structure called NVT. Each unit has a NVT cache, backed
by RAM.

When the NVT structure is not local (in RAM) to the chip, the XIVE
interrupt controller forwards the memory operation to the owning chip
using the PC MMIO region configured for this purpose. QEMU does not
need to be so precise since software shouldn't perform any of these
operations. The model implementation is simplified to return the RAM
address of the NVT structure which is then used by pnv_xive_vst_write
or read to perform the operation in RAM.

Remove the last use of pnv_xive_get_remote().

Reviewed-by: Frederic Barrat <fbarrat@linux.ibm.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/intc/pnv_xive.c