summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorGreg Kurz2020-10-26 13:40:47 +0100
committerDavid Gibson2020-10-27 15:08:53 +0100
commit0a06e4d6267ca150d62fbc371afab2fbb5586cb8 (patch)
treed048ac9766c0e3a278b646fa163c836f69da99ec /include/hw
parentspapr: Use error_append_hint() in spapr_reallocate_hpt() (diff)
downloadqemu-0a06e4d6267ca150d62fbc371afab2fbb5586cb8.tar.gz
qemu-0a06e4d6267ca150d62fbc371afab2fbb5586cb8.tar.xz
qemu-0a06e4d6267ca150d62fbc371afab2fbb5586cb8.zip
target/ppc: Fix kvmppc_load_htab_chunk() error reporting
If kvmppc_load_htab_chunk() fails, its return value is propagated up to vmstate_load(). It should thus be a negative errno, not -1 (which maps to EPERM and would lure the user into thinking that the problem is necessarily related to a lack of privilege). Return the error reported by KVM or ENOSPC in case of short write. While here, propagate the error message through an @errp argument and have the caller to print it with error_report_err() instead of relying on fprintf(). Signed-off-by: Greg Kurz <groug@kaod.org> Message-Id: <160371604713.305923.5264900354159029580.stgit@bahia.lan> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw')
0 files changed, 0 insertions, 0 deletions