pnv/xive2: Always pass a presenter object when accessing the TIMA
commited75a123579d56b5523f74868bb2c5877dc2c119
authorFrederic Barrat <fbarrat@linux.ibm.com>
Wed, 5 Jul 2023 08:14:00 +0000 (5 10:14 +0200)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Fri, 7 Jul 2023 07:46:12 +0000 (7 04:46 -0300)
tree73cde388478e0a1200d2f2ea2a177464e6e89fe4
parentff349cce8923d3c1713a6d58eb98ff692e6637f6
pnv/xive2: Always pass a presenter object when accessing the TIMA

The low-level functions to access the TIMA take a presenter object as
a first argument. When accessing the TIMA from the IC BAR,
i.e. indirect calls, we currently pass a NULL pointer for the
presenter argument. While it appears ok with the current usage, it's
dangerous. And it's pretty easy to figure out the presenter in that
context, so this patch fixes it.

Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-ID: <20230705081400.218408-1-fbarrat@linux.ibm.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
hw/intc/pnv_xive2.c