OSDN Git Service

spapr: Provide an error message when migration fails due to htab_shift mismatch
authorBharata B Rao <bharata@linux.vnet.ibm.com>
Thu, 30 Jul 2015 14:55:15 +0000 (20:25 +0530)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 23 Sep 2015 00:43:23 +0000 (10:43 +1000)
commit613e7a764501a236cdfce39561f9bcf60c78cf49
tree99dbb0081b839ac1af05bdf63869a0f17dc50e83
parent27c7275a56948f48f536e2d1599b22355f5714ac
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>
hw/ppc/spapr.c