ppc/xive: Make the PIPR register readonly
commit8256870ada9379abfd1f5b2c209ad01092dd0904
authorCédric Le Goater <clg@kaod.org>
Sun, 30 Jun 2019 20:45:53 +0000 (30 22:45 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 1 Jul 2019 23:43:58 +0000 (2 09:43 +1000)
tree00fbeacc234b617d65aed76f0a3281e466228870
parentfe9a9d527da8ae939ee7eb32cb0045d2c3f75a11
ppc/xive: Make the PIPR register readonly

When the hypervisor (KVM) dispatches a vCPU on a HW thread, it restores
its thread interrupt context. The Pending Interrupt Priority Register
(PIPR) is computed from the Interrupt Pending Buffer (IPB) and stores
should not be allowed to change its value.

Fixes: 207d9fe98510 ("ppc/xive: introduce the XIVE interrupt thread context")
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20190630204601.30574-3-clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/xive.c