Greg Kurz 3885ca6688 spapr/xive: Rework error handling of kvmppc_xive_cpu_connect()
Use error_setg_errno() instead of error_setg(strerror()). While here,
use -ret instead of errno since kvm_vcpu_enable_cap() returns a negative
errno on failure.

Use ERRP_GUARD() to ensure that errp can be passed to error_append_hint(),
and get rid of the local_err boilerplate.

Propagate the return value so that callers may use it as well to check
failures.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <159707844549.1489912.4862921680328017645.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2020-08-13 21:00:52 +10:00
..
2020-06-24 17:18:28 -04:00
2020-06-25 16:52:42 +01:00
2020-04-30 11:52:27 +01:00
2020-06-26 09:39:40 -04:00
2020-07-16 12:30:54 -05:00
2019-09-07 08:31:51 +02:00
2019-10-28 19:06:47 +01:00
2020-06-22 18:37:12 +02:00
2020-05-15 07:08:14 +02:00
2020-06-15 22:05:28 +02:00