All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Juan Quintela <quintela@redhat.com>
Cc: qemu-devel@nongnu.org, Luiz Capitulino <lcapitulino@redhat.com>
Subject: Re: [Qemu-devel] Re: [PATCH v3 0/5] Add QMP migration events
Date: Mon, 14 Jun 2010 15:01:05 -0500	[thread overview]
Message-ID: <4C168A81.8060302@codemonkey.ws> (raw)
In-Reply-To: <m3631lcruk.fsf@trasno.mitica>

On 06/14/2010 02:54 PM, Juan Quintela wrote:
> Anthony Liguori<aliguori@linux.vnet.ibm.com>  wrote:
>    
>> On 06/14/2010 01:35 PM, Juan Quintela wrote:
>>      
>    
>>> Ok. lets stop here.  My definitions:
>>>
>>> Event: this important thing happened (important has several meanings).
>>>
>>> Migration events fully enter in this definition.  Furthermore, migration
>>> events happens from actions that are issued in machine A and event
>>> happens in machine A and machine B. (I.e. they are so special as they
>>> can get).
>>>
>>>        
>> I think you've got too narrow a view.  Migration doesn't always
>> involve two machines.  Migration can involve just the source writing
>> via "exec:dd of=foo.img" and this is in fact an important use case for
>> libvirt.
>>      
> In this case, I also want to know when migration ended.
>
>    
>>> Now convenience.  I "think" it would be convenient to also know in the
>>> other monitors when any "write" command happens.  About how to implement
>>> this, if there are more uses or no, .... that is clearly open to
>>> discussion.  I think that this enter fully in the politics vs mechanism
>>> discussions, events allow you to notify when things happen, and
>>> management app can do anything that it sees fit.
>>>
>>> As principle, I think that "important happenings" (to not repeat the
>>> "event" word) should be published in a very clear way.  Migration
>>> start/end are a basic example of that.  It is not as if Migration is
>>> going to stop having a "start" or an "end" any time soon.  Making the
>>> app polling to know that is too cumbersome for the "normal" good case.
>>> This kind of things should be plublished "somehow".  The same that
>>> happens when a machine start/stops.  That are improntant events.
>>>
>>>        
>> What makes migration important and not savevm?
>>      
> That is the reason why I insist to have the events "both" in source and
> destination.  About how to integrate savevm on the whole picture ....
>
> VM_SAVE_START/VM_SAVE_END/VM_RESTORE_START/VM_RESTORE_END events?
>    

If savevm is an asychronous command, then it's already there.

You really want to support turning all command submissions/completions 
into events.   You could do it with two events.  The first would be 
COMMAND_REQUEST and would contain the request data and which monitor it 
occurred on.  The second would be COMMAND_RESPONSE and would contain the 
response data and which monitor it occurred on.

But honestly, I think it's a stretch to say this functionality is really 
needed.

>> It's not that I don't agree that migration is important and that it's
>> important for tools to be able to know about it.  I disagree that
>> migration is *more* important than most of the other things that
>> happen in the monitor and I want to make sure that we come up with a
>> solution that solves the broader problem.
>>      
> Agreed.  That was also the reason why I told that the "write" commands
> are "more interesting" in this regard.
>
> But now (at least in my point of view), we are moving in the right
> direction.  From "we can get this with polling + other workarounds" to
> "this mechininsm could be useful for other things".
>
> Later, Juan.
>
>    

  reply	other threads:[~2010-06-14 20:01 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-09 12:10 [Qemu-devel] [PATCH v3 0/5] Add QMP migration events Juan Quintela
2010-06-09 12:10 ` [Qemu-devel] [PATCH v3 1/5] Exit if incoming migration fails Juan Quintela
2010-06-23  1:47   ` Anthony Liguori
2010-06-24 20:41     ` [Qemu-devel] [PATCH] win32: Add define for missing EPROTONOSUPPORT Stefan Weil
2010-06-27 20:25       ` Blue Swirl
2010-06-09 12:10 ` [Qemu-devel] [PATCH v3 2/5] Factorize common migration incoming code Juan Quintela
2010-06-09 12:10 ` [Qemu-devel] [PATCH v3 3/5] QMP: Introduce MIGRATION events Juan Quintela
2010-06-09 20:54   ` Luiz Capitulino
2010-06-10 10:33     ` [Qemu-devel] " Juan Quintela
2010-06-11 13:12       ` Luiz Capitulino
2010-06-09 12:10 ` [Qemu-devel] [PATCH v3 4/5] QMP: Emit migration events on incoming migration Juan Quintela
2010-06-09 12:10 ` [Qemu-devel] [PATCH v3 5/5] QMP: Emit migration events on outgoing migration Juan Quintela
2010-06-09 14:47 ` [Qemu-devel] [PATCH v3 0/5] Add QMP migration events Yoshiaki Tamura
2010-06-09 15:59   ` [Qemu-devel] " Juan Quintela
2010-06-09 22:07     ` Yoshiaki Tamura
2010-06-09 20:52 ` [Qemu-devel] " Luiz Capitulino
2010-06-09 21:19   ` Yoshiaki Tamura
2010-06-10 10:44   ` [Qemu-devel] " Juan Quintela
2010-06-11 14:30     ` Luiz Capitulino
2010-06-11 14:38       ` Anthony Liguori
2010-06-11 16:42         ` Luiz Capitulino
2010-06-12 11:20           ` Juan Quintela
2010-06-14 14:36             ` Luiz Capitulino
2010-06-14 15:45               ` Juan Quintela
2010-06-12 11:14         ` Juan Quintela
2010-06-14 13:58           ` Anthony Liguori
2010-06-14 14:24             ` Luiz Capitulino
2010-06-14 14:35               ` Anthony Liguori
2010-06-14 14:42                 ` Luiz Capitulino
2010-06-12 11:05       ` Juan Quintela
2010-06-14 14:03         ` Anthony Liguori
2010-06-14 16:02           ` Juan Quintela
2010-06-14 16:10             ` Anthony Liguori
2010-06-14 18:35               ` Juan Quintela
2010-06-14 19:07                 ` Anthony Liguori
2010-06-14 19:54                   ` Juan Quintela
2010-06-14 20:01                     ` Anthony Liguori [this message]
2010-06-15 10:30                       ` Juan Quintela
2010-06-15 13:40                         ` Luiz Capitulino
2010-06-15 15:24                           ` Juan Quintela
2010-06-16 18:01                             ` Luiz Capitulino
2010-06-16 19:10                               ` Juan Quintela
2010-06-17 14:23                                 ` Luiz Capitulino
2010-06-17 16:34                                   ` Juan Quintela
2010-06-17 16:45                                     ` Luiz Capitulino
2010-06-17 17:53                                       ` Anthony Liguori

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=4C168A81.8060302@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=lcapitulino@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.