Print error when failing to load PCI config data
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 <dgilbert@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
4aab6282f8
commit
7c59364d03
@ -428,6 +428,10 @@ static int get_pci_config_device(QEMUFile *f, void *pv, size_t size)
|
|||||||
for (i = 0; i < size; ++i) {
|
for (i = 0; i < size; ++i) {
|
||||||
if ((config[i] ^ s->config[i]) &
|
if ((config[i] ^ s->config[i]) &
|
||||||
s->cmask[i] & ~s->wmask[i] & ~s->w1cmask[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);
|
g_free(config);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user