spapr: Get rid of cas_check_pvr() error reporting
commit121afbe487b7b10b9fc683be16068368e1ad0f11
authorGreg Kurz <groug@kaod.org>
Mon, 14 Sep 2020 12:34:55 +0000 (14 14:34 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 8 Oct 2020 23:15:06 +0000 (9 10:15 +1100)
tree71ef8d638a6611c6db87d9b597eb02375721f4a7
parenta3114923d4c5f0a2ccc8b4d74b3eebad3fb6ce5d
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>
hw/ppc/spapr_hcall.c