[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 01/25] spapr: Provide an error message when migration
From: |
David Gibson |
Subject: |
[Qemu-ppc] [PATCH 01/25] spapr: Provide an error message when migration fails due to htab_shift mismatch |
Date: |
Thu, 3 Sep 2015 14:27:52 +1000 |
From: Bharata B Rao <address@hidden>
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 <address@hidden>
Signed-off-by: David Gibson <address@hidden>
---
hw/ppc/spapr.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index bf0c64f..d6f1c84 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;
--
2.4.3
- [Qemu-ppc] [PATCH 00/25] sPAPR (pseries) patch backlog 2015-00-03, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 01/25] spapr: Provide an error message when migration fails due to htab_shift mismatch,
David Gibson <=
- [Qemu-ppc] [PATCH 11/25] spapr: Make ibm, change-msi respect 3 return values, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 06/25] spapr: Make hash table size a factor of maxram_size, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 10/25] spapr: Add /rtas/ibm,change-msix-capable, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 13/25] spapr_drc: Fix potential undefined behaviour, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 02/25] spapr: Create pseries-2.5 machine, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 12/25] spapr: SPLPAR Characteristics, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 14/25] spapr: add dumpdtb support, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 04/25] spapr: Add LMB DR connectors, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 22/25] spapr_rtas: Prevent QEMU crash during hotplug without a prior device_add, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 03/25] spapr: Initialize hotplug memory address space, David Gibson, 2015/09/03