qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Lucas Meneghel Rodrigues <lmr@redhat.com>
To: Alexander Graf <agraf@suse.de>
Cc: amit.shah@redhat.com, Dave Gilbert <dgilbert@redhat.com>,
	Developers qemu-devel <qemu-devel@nongnu.org>,
	Lucas Meneghel Rodrigues <lookkas@gmail.com>,
	quintela@redhat.com
Subject: Re: [Qemu-devel] HEAD is failing virt-test on migration tests
Date: Fri, 13 Feb 2015 09:09:10 -0200	[thread overview]
Message-ID: <1423825750.2822.0@smtp.corp.redhat.com> (raw)
In-Reply-To: <54DD4701.7070908@suse.de>

[-- Attachment #1: Type: text/plain, Size: 3707 bytes --]

Alex, Dave:

Virt-Test fd migration starts by sending a fd to the source vm

22:20:40 DEBUG| Send file descriptor migfd_28_1423786840 to source VM.
22:20:40 DEBUG| (monitor hmp1) Sending command 'getfd 
migfd_28_1423786840'

later on...

22:20:42 INFO | Migrating to fd:migfd_28_1423786840
22:20:42 DEBUG| (monitor hmp1) Sending command 'migrate -d 
fd:migfd_28_1423786840'
22:20:42 DEBUG| Send command: migrate -d fd:migfd_28_1423786840

Attached to this message you can find a .tar.bz2 file (~36Kb) with 
virt-test results. It contains extra information, such as a a record of 
vm registers taken periodically during the testing process.

Cheers,

Lucas

On Thu, Feb 12, 2015 at 10:36 PM, Alexander Graf <agraf@suse.de> wrote:
> 
> 
> On 13.02.15 01:29, Lucas Meneghel Rodrigues wrote:
>>  Copying Alex.
>> 
>>  OK, after bisecting, this is what I've got:
>> 
>>  8118f0950fc77cce7873002a5021172dd6e040b5 is the first bad commit
>>  commit 8118f0950fc77cce7873002a5021172dd6e040b5
>>  Author: Alexander Graf <agraf@suse.de <mailto:agraf@suse.de>>
>>  Date:   Thu Jan 22 15:01:39 2015 +0100
>> 
>>      migration: Append JSON description of migration stream
>> 
>>      One of the annoyances of the current migration format is the 
>> fact that
>>      it's not self-describing. In fact, it's not properly describing 
>> at all.
>>      Some code randomly scattered throughout QEMU elaborates roughly 
>> how to
>>      read and write a stream of bytes.
>> 
>>      We discussed an idea during KVM Forum 2013 to add a JSON 
>> description of
>>      the migration protocol itself to the migration stream. This 
>> patch
>>      adds a section after the VM_END migration end marker that 
>> contains
>>      description data on what the device sections of the stream are
>>  composed of.
>> 
>>      This approach is backwards compatible with any QEMU version 
>> reading the
>>      stream, because QEMU just stops reading after the VM_END marker 
>> and
>>  ignores
>>      any data following it.
>> 
>>      With an additional external program this allows us to decipher 
>> the
>>      contents of any migration stream and hopefully make migration 
>> bugs
>>  easier
>>      to track down.
>> 
>>      Signed-off-by: Alexander Graf <agraf@suse.de 
>> <mailto:agraf@suse.de>>
>>      Signed-off-by: Amit Shah <amit.shah@redhat.com
>>  <mailto:amit.shah@redhat.com>>
>>      Signed-off-by: Juan Quintela <quintela@redhat.com
>>  <mailto:quintela@redhat.com>>
>> 
>>  :040000 040000 e9a8888ac242a61fbd05bbb0daa3e8877970e738
>>  61df81f831bc86b29f65883523ea95abb36f1ec5 Mhw
>>  :040000 040000 fe0659bed17d86c43657c26622d64fd44a1af037
>>  7092a6b6515a3d0077f68ff2d80dbd74597a244f Minclude
>>  :040000 040000 d90d6f1fe839abf21a45eaba5829d5a6a22abeb1
>>  c2b1dcda197d96657458d699c185e39ae45f3c6c Mmigration
>>  :100644 100644 98895fee81edfbc659fc42d467e930d06b1afa7d
>>  80407662ad3ed860d33a9d35f5c44b1d19c4612b Msavevm.c
>>  :040000 040000 cf218bc2b841cd51ebe3972635be2cfbb1de9dfa
>>  7aaf3d10ef7f73413b228e854fe6f04317151e46 Mtests
>> 
>>  So there you go. I'm going to sleep, if you need any extra help let 
>> me know.
> 
> So the major difference with this patch applied is that the sender 
> could
> send more data than the receive wants to read. I can't see the actual
> migrate command you used down there.
> 
> I haven't seen this actually being a problem so far, as the receiver
> just close()s its file descriptor once it hits VM_EOF. This should 
> only
> break senders if they expect they can send more. That said, I think I
> only tested offline migration (via exec:), so maybe QEMU is behaving
> badly and actually wants to send all data and just fails the migration
> without?
> 
> 
> Alex
> 

[-- Attachment #2: run-2015-02-12-22.20.21.tar.bz2 --]
[-- Type: application/x-bzip-compressed-tar, Size: 36108 bytes --]

      parent reply	other threads:[~2015-02-13 11:09 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-12 22:12 [Qemu-devel] HEAD is failing virt-test on migration tests Juan Quintela
2015-02-12 22:19 ` Lucas Meneghel Rodrigues
2015-02-12 22:56   ` Lucas Meneghel Rodrigues
2015-02-12 23:03     ` Lucas Meneghel Rodrigues
2015-02-13  0:29     ` Lucas Meneghel Rodrigues
2015-02-13  0:36       ` Alexander Graf
2015-02-13  9:04         ` Dr. David Alan Gilbert
2015-02-13 11:18           ` Alexander Graf
2015-02-13 11:23             ` Dr. David Alan Gilbert
2015-02-13 11:23             ` Lucas Meneghel Rodrigues
2015-02-13 23:33               ` Alexander Graf
2015-02-16 18:57                 ` Dr. David Alan Gilbert
2015-02-16 20:24                   ` Alexander Graf
2015-02-16 21:06                     ` Paolo Bonzini
2015-02-16 21:08                       ` Alexander Graf
2015-02-16 21:38                         ` Paolo Bonzini
2015-02-13 11:09         ` Lucas Meneghel Rodrigues [this message]

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=1423825750.2822.0@smtp.corp.redhat.com \
    --to=lmr@redhat.com \
    --cc=agraf@suse.de \
    --cc=amit.shah@redhat.com \
    --cc=dgilbert@redhat.com \
    --cc=lookkas@gmail.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 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).