qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Live migration - exec: support to be reintroduced?
Date: Wed, 05 Nov 2008 08:09:56 -0600	[thread overview]
Message-ID: <4911A934.9040007@codemonkey.ws> (raw)
In-Reply-To: <4911514C.1070300@redhat.com>

Chris Lalancette wrote:
> Anthony Liguori wrote:
>   
>> Charles Duffy wrote:
>>     
>>> Howdy.
>>>
>>> KVM's live migration support used to support an exec: protoco, 
>>> allowing  either a completely arbitrary transport or a mechanism for 
>>> storing system state to a separate file for later resurrection, being 
>>> used in the latter by libvirt's qemu driver. I notice that this 
>>> support no longer exists in the current codebase.
>>> Would a patch reimplementing this support be welcome?
>>>       
>> Absolutely.  I wasn't aware that libvirt used the exec: protocol.  I'm 
>> somewhat surprised by that.  What did it use it for?
>>     
>
> Hm, I didn't realize it used it either, but it uses it for doing a save operation:
>
> static int qemudDomainSave(virDomainPtr dom,
>                            const char *path) {
> ...
>     if (asprintf (&command, "migrate \"exec:"
>                   "dd of='%s' oflag=append conv=notrunc 2>/dev/null"
>                   "\"", safe_path) == -1) {
>         qemudReportError(dom->conn, dom, NULL, VIR_ERR_OPERATION_FAILED,
>                          "%s", _("out of memory"));
>         VIR_FREE(safe_path);
>         return -1;
>     }
>     free(safe_path);
>
>     if (qemudMonitorCommand(driver, vm, command, &info) < 0) {
> ...
>
> I don't know if there is a better way to do that with the qemu monitor, to avoid
>  using migrate altogether.  In any case, I'm sure other people would find exec:
> useful as well.
>   

Sure.  It would make sense for it to use file: instead of exec: though.

However, why is it not just using savevm?  Saving the CPU state in the 
absence of checkpointing storage doesn't make a lot of sense.

Regards,

Anthony Liguori

  reply	other threads:[~2008-11-05 14:10 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-05  0:40 [Qemu-devel] Live migration - exec: support to be reintroduced? Charles Duffy
2008-11-05  5:38 ` Anthony Liguori
2008-11-05  7:54   ` Chris Lalancette
2008-11-05 14:09     ` Anthony Liguori [this message]
2008-11-05 14:19       ` Daniel P. Berrange
2008-11-05 14:52         ` Jamie Lokier
2008-11-05 15:12         ` Anthony Liguori
2008-11-05 18:10           ` [Qemu-devel] " Charles Duffy
2008-11-05 18:55           ` Charles Duffy
2008-11-05 19:10             ` Anthony Liguori
2008-11-05 10:05   ` [Qemu-devel] " Daniel P. Berrange
2008-11-05 13:03     ` Avi Kivity
2008-11-05 14:14       ` Anthony Liguori
2008-11-05 14:37         ` Daniel P. Berrange
2008-11-05 15:19           ` Anthony Liguori
2008-11-05 17:23             ` Daniel P. Berrange
2008-11-05 17:30               ` Anthony Liguori
2008-11-05 18:13             ` Avi Kivity
2008-11-05 18:10         ` Avi Kivity
2008-11-07  1:54   ` [Qemu-devel] [PATCH] " Charles Duffy
2008-11-07 18:49     ` [Qemu-devel] Re: [PATCH] Re: Live migration - exec: support to be reintroduced? (r2) Charles Duffy
2008-11-11 16:41       ` Charles Duffy
2008-11-11 16:46       ` 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=4911A934.9040007@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=qemu-devel@nongnu.org \
    /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).