target/ppc: make vhyp get_pate method take lpid and return success
authorNicholas Piggin <npiggin@gmail.com>
Fri, 18 Feb 2022 07:34:14 +0000 (08:34 +0100)
committerCédric Le Goater <clg@kaod.org>
Fri, 18 Feb 2022 07:34:14 +0000 (08:34 +0100)
commitf32d4ab41c467c0e4ddcaff37e4f2af57bcaad8c
treeaaa6c70f4c82fdd00c5f18410162f0bc5cea1847
parent4dce0bde3047e773750237390ecd64829f1eac58
target/ppc: make vhyp get_pate method take lpid and return success

In prepartion for implementing a full partition table option for
vhyp, update the get_pate method to take an lpid and return a
success/fail indicator.

The spapr implementation currently just asserts lpid is always 0
and always return success.

Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[ clg: checkpatch fixes ]
Message-Id: <20220216102545.1808018-6-npiggin@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/ppc/spapr.c
target/ppc/cpu.h
target/ppc/mmu-radix64.c