[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 04/21] Print error when failing to load PCI config da
From: |
Michael Tokarev |
Subject: |
[Qemu-devel] [PULL 04/21] Print error when failing to load PCI config data |
Date: |
Mon, 22 Jun 2015 14:16:11 +0300 |
From: "Dr. David Alan Gilbert" <address@hidden>
When loading migration fails due to a disagreement about
PCI config data we don't currently get any errors explaining
that was the cause of the problem or which byte in the config
data was at fault.
Signed-off-by: Dr. David Alan Gilbert <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
hw/pci/pci.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/pci/pci.c b/hw/pci/pci.c
index 2158043..ef44e04 100644
--- a/hw/pci/pci.c
+++ b/hw/pci/pci.c
@@ -427,6 +427,10 @@ static int get_pci_config_device(QEMUFile *f, void *pv,
size_t size)
for (i = 0; i < size; ++i) {
if ((config[i] ^ s->config[i]) &
s->cmask[i] & ~s->wmask[i] & ~s->w1cmask[i]) {
+ error_report("%s: Bad config data: i=0x%x read: %x device: %x "
+ "cmask: %x wmask: %x w1cmask:%x", __func__,
+ i, config[i], s->config[i],
+ s->cmask[i], s->wmask[i], s->w1cmask[i]);
g_free(config);
return -EINVAL;
}
--
2.1.4
- [Qemu-devel] [PULL 00/21] Trivial patches for 2015-06-22, Michael Tokarev, 2015/06/22
- [Qemu-devel] [PULL 01/21] configure: append --extra-ldflags to LDFLAGS, Michael Tokarev, 2015/06/22
- [Qemu-devel] [PULL 19/21] hw/display/cg3.c: Fix memory leak, Michael Tokarev, 2015/06/22
- [Qemu-devel] [PULL 14/21] throttle: Fix typo in the documentation of block_set_io_throttle, Michael Tokarev, 2015/06/22
- [Qemu-devel] [PULL 08/21] wdt_i6300esb: QOMify, Michael Tokarev, 2015/06/22
- [Qemu-devel] [PULL 10/21] vt82c686: QOMify, Michael Tokarev, 2015/06/22
- [Qemu-devel] [PULL 18/21] Makefile: Add "make ctags", Michael Tokarev, 2015/06/22
- [Qemu-devel] [PULL 17/21] Makefile: Fix "make cscope TAGS", Michael Tokarev, 2015/06/22
- [Qemu-devel] [PULL 07/21] piix4: QOMify, Michael Tokarev, 2015/06/22
- [Qemu-devel] [PULL 04/21] Print error when failing to load PCI config data,
Michael Tokarev <=
- [Qemu-devel] [PULL 20/21] hw/display/tcx.c: Fix memory leak, Michael Tokarev, 2015/06/22
- [Qemu-devel] [PULL 21/21] util/qemu-sockets: improve ai_flag hints for ipv6 hosts, Michael Tokarev, 2015/06/22
- [Qemu-devel] [PULL 09/21] xen_pt: QOMify, Michael Tokarev, 2015/06/22
- [Qemu-devel] [PULL 06/21] piix: piix3 QOMify, Michael Tokarev, 2015/06/22
- [Qemu-devel] [PULL 15/21] qemu-options: Improve -global documentation, Michael Tokarev, 2015/06/22
- [Qemu-devel] [PULL 05/21] pci-assign: QOMify, Michael Tokarev, 2015/06/22
- [Qemu-devel] [PULL 11/21] libcacard: pkgconfig: tidy dependent libs, Michael Tokarev, 2015/06/22
- [Qemu-devel] [PULL 03/21] Grammar: 'as to'->'as for', Michael Tokarev, 2015/06/22
- [Qemu-devel] [PULL 13/21] hw/display/qxl-logger.c: Constify some variable, Michael Tokarev, 2015/06/22
- [Qemu-devel] [PULL 12/21] configure: rearrange --help and consolidate enable/disable together, Michael Tokarev, 2015/06/22