aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi/main.py
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2020-09-14 14:34:55 +0200
committerDavid Gibson <david@gibson.dropbear.id.au>2020-10-09 10:15:06 +1100
commit121afbe487b7b10b9fc683be16068368e1ad0f11 (patch)
tree71ef8d638a6611c6db87d9b597eb02375721f4a7 /scripts/qapi/main.py
parenta3114923d4c5f0a2ccc8b4d74b3eebad3fb6ce5d (diff)
downloadqemu-121afbe487b7b10b9fc683be16068368e1ad0f11.zip
qemu-121afbe487b7b10b9fc683be16068368e1ad0f11.tar.gz
qemu-121afbe487b7b10b9fc683be16068368e1ad0f11.tar.bz2
spapr: Get rid of cas_check_pvr() error reporting
The cas_check_pvr() function has two purposes: - finding the "best" logical PVR, ie. the most recent one supported by the guest for this CPU type - checking if the guest supports the real PVR of this CPU type, which is just an optional extra information to workaround the lack of support for "compat" mode in PR KVM This logic doesn't need error reporting, really. If we don't find a suitable logical PVR, we return the special value 0 which is definitely not a valid PVR. Let the caller decide on whether it should error out or not. This doesn't change the behavior. Signed-off-by: Greg Kurz <groug@kaod.org> Message-Id: <20200914123505.612812-6-groug@kaod.org> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'scripts/qapi/main.py')
0 files changed, 0 insertions, 0 deletions