All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Snow <jsnow@redhat.com>
To: "Dr. David Alan Gilbert (git)" <dgilbert@redhat.com>,
	qemu-devel@nongnu.org, amit.shah@redhat.com, quintela@redhat.com
Subject: Re: [Qemu-devel] [PATCH 0/2] Add error reporting in migration
Date: Tue, 27 Sep 2016 17:22:25 -0400	[thread overview]
Message-ID: <a0d1226f-80ca-2c3a-efa4-fbc55557caa0@redhat.com> (raw)
In-Reply-To: <1475002565-30170-1-git-send-email-dgilbert@redhat.com>



On 09/27/2016 02:56 PM, Dr. David Alan Gilbert (git) wrote:
> From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
>
> At the moment if you use a VMSTATE_*_EQUAL macro and the value
> doesn't match you just get an error about the section that failed
>
> e.g.
>   qemu-system-ppc64: error while loading state for instance 0x0 of device 'cpu'
>   qemu-system-ppc64: load of migration failed: Invalid argument
>
> with this pair you get the field and the mismatched values.
> e.g.
>   qemu-system-ppc64: 8000600FE1FF7AE1 != 8000600FE1FF3A21
>   qemu-system-ppc64: Failed to load cpu:env.insns_flags
>   qemu-system-ppc64: error while loading state for instance 0x0 of device 'cpu'
>   qemu-system-ppc64: load of migration failed: Invalid argument
>
> which is much more likely to point you at the culprit.
>
> (Broken out from a larger vmstatification series, the only change since
> then is the values are printed in hex except for the le case).
>
> Dave
>
> Dr. David Alan Gilbert (2):
>   migration: report an error giving the failed field
>   migration: Report values for comparisons
>
>  migration/vmstate.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>

I see this as a strict improvement; though I don't know if there will be 
complaints about printing error messages instead of adding pathways for 
the Error object.

Meh. Existing errors here simply use error_report anyway, so:

Reviewed-by: John Snow <jsnow@redhat.com>

  parent reply	other threads:[~2016-09-27 21:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-27 18:56 [Qemu-devel] [PATCH 0/2] Add error reporting in migration Dr. David Alan Gilbert (git)
2016-09-27 18:56 ` [Qemu-devel] [PATCH 1/2] migration: report an error giving the failed field Dr. David Alan Gilbert (git)
2016-10-05  8:49   ` Juan Quintela
2016-09-27 18:56 ` [Qemu-devel] [PATCH 2/2] migration: Report values for comparisons Dr. David Alan Gilbert (git)
2016-10-05  8:49   ` Juan Quintela
2016-09-27 21:22 ` John Snow [this message]
2016-09-28  2:16   ` [Qemu-devel] [PATCH 0/2] Add error reporting in migration Markus Armbruster

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=a0d1226f-80ca-2c3a-efa4-fbc55557caa0@redhat.com \
    --to=jsnow@redhat.com \
    --cc=amit.shah@redhat.com \
    --cc=dgilbert@redhat.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.