]> git.ipfire.org Git - thirdparty/qemu.git/commit
ppc/xive2: implement NVP context save restore for POOL ring
authorNicholas Piggin <npiggin@gmail.com>
Mon, 12 May 2025 03:10:49 +0000 (13:10 +1000)
committerCédric Le Goater <clg@redhat.com>
Mon, 21 Jul 2025 06:03:53 +0000 (08:03 +0200)
commit365e322cfb86b2e7131c3290c3a61f8d2bb224d3
treed0bbe9a618a370de2b098b0a139e33dbf6e39709
parent203181cebdb96283520b496d6eaa49634eb51579
ppc/xive2: implement NVP context save restore for POOL ring

In preparation to implement POOL context push, add support for POOL
NVP context save/restore.

The NVP p bit is defined in the spec as follows:

    If TRUE, the CPPR of a Pool VP in the NVP is updated during store of
    the context with the CPPR of the Hard context it was running under.

It's not clear whether non-pool VPs always or never get CPPR updated.
Before this patch, OS contexts always save CPPR, so we will assume that
is the behaviour.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Glenn Miles <milesg@linux.ibm.com>
Reviewed-by: Michael Kowal <kowal@linux.ibm.com>
Tested-by: Gautam Menghani <gautam@linux.ibm.com>
Link: https://lore.kernel.org/qemu-devel/20250512031100.439842-41-npiggin@gmail.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/intc/xive2.c
include/hw/ppc/xive2_regs.h