From: Amit Shah <amit.shah@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Juan Quintela <quintela@redhat.com>,
"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
qemu list <qemu-devel@nongnu.org>,
duanj@linux.vnet.ibm.com, Amit Shah <amit.shah@redhat.com>
Subject: [Qemu-devel] [PULL 4/4] migration: add error_report
Date: Thu, 5 Jan 2017 22:02:10 +0530 [thread overview]
Message-ID: <1483633930-7103-5-git-send-email-amit.shah@redhat.com> (raw)
In-Reply-To: <1483633930-7103-1-git-send-email-amit.shah@redhat.com>
From: Jianjun Duan <duanj@linux.vnet.ibm.com>
Added error_report where version_ids do not match in vmstate_load_state.
Signed-off-by: Jianjun Duan <duanj@linux.vnet.ibm.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-id: 1481224870-18247-5-git-send-email-duanj@linux.vnet.ibm.com
Signed-off-by: Amit Shah <amit.shah@redhat.com>
---
migration/vmstate.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/migration/vmstate.c b/migration/vmstate.c
index 2f9d4ba..8ddd230 100644
--- a/migration/vmstate.c
+++ b/migration/vmstate.c
@@ -85,6 +85,9 @@ int vmstate_load_state(QEMUFile *f, const VMStateDescription *vmsd,
trace_vmstate_load_state(vmsd->name, version_id);
if (version_id > vmsd->version_id) {
+ error_report("%s: incoming version_id %d is too new "
+ "for local version_id %d",
+ vmsd->name, version_id, vmsd->version_id);
trace_vmstate_load_state_end(vmsd->name, "too new", -EINVAL);
return -EINVAL;
}
@@ -95,6 +98,9 @@ int vmstate_load_state(QEMUFile *f, const VMStateDescription *vmsd,
trace_vmstate_load_state_end(vmsd->name, "old path", ret);
return ret;
}
+ error_report("%s: incoming version_id %d is too old "
+ "for local minimum version_id %d",
+ vmsd->name, version_id, vmsd->minimum_version_id);
trace_vmstate_load_state_end(vmsd->name, "too old", -EINVAL);
return -EINVAL;
}
--
2.9.3
next prev parent reply other threads:[~2017-01-05 16:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-05 16:32 [Qemu-devel] [PULL 0/4] migration: QTAILQ migration Amit Shah
2017-01-05 16:32 ` [Qemu-devel] [PULL 1/4] migration: extend VMStateInfo Amit Shah
2017-01-05 16:32 ` [Qemu-devel] [PULL 2/4] migration: migrate QTAILQ Amit Shah
2017-01-05 16:32 ` [Qemu-devel] [PULL 3/4] tests/migration: Add test for QTAILQ migration Amit Shah
2017-01-05 16:32 ` Amit Shah [this message]
2017-01-06 12:10 ` [Qemu-devel] [PULL 0/4] migration: " Peter Maydell
2017-01-13 3:37 ` Amit Shah
2017-01-13 9:43 ` Peter Maydell
2017-01-16 18:22 ` Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1483633930-7103-5-git-send-email-amit.shah@redhat.com \
--to=amit.shah@redhat.com \
--cc=dgilbert@redhat.com \
--cc=duanj@linux.vnet.ibm.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).