diff options
author | Bharata B Rao <bharata@linux.vnet.ibm.com> | 2015-07-30 20:25:15 +0530 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2015-09-23 10:43:23 +1000 |
commit | 613e7a764501a236cdfce39561f9bcf60c78cf49 (patch) | |
tree | 99dbb0081b839ac1af05bdf63869a0f17dc50e83 /hw/ppc | |
parent | 27c7275a56948f48f536e2d1599b22355f5714ac (diff) | |
download | hqemu-613e7a764501a236cdfce39561f9bcf60c78cf49.zip hqemu-613e7a764501a236cdfce39561f9bcf60c78cf49.tar.gz |
spapr: Provide an error message when migration fails due to htab_shift mismatch
Include an error message when migration fails due to mismatch in
htab_shift values at source and target. This should provide a bit more
verbose message in addition to the current migration failure message
that reads like:
qemu-system-ppc64: error while loading state for instance 0x0 of device 'spapr/htab'
After this patch, the failure message will look like this:
qemu-system-ppc64: htab_shift mismatch: source 29 target 24
qemu-system-ppc64: error while loading state for instance 0x0 of device 'spapr/htab'
Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ppc')
-rw-r--r-- | hw/ppc/spapr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 05926a3..dd58eb4 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -1329,6 +1329,8 @@ static int htab_load(QEMUFile *f, void *opaque, int version_id) if (section_hdr) { /* First section, just the hash shift */ if (spapr->htab_shift != section_hdr) { + error_report("htab_shift mismatch: source %d target %d", + section_hdr, spapr->htab_shift); return -EINVAL; } return 0; |