qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Xiongzi Ge <gexxx132@umn.edu>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Live Migration with different block devices
Date: Tue, 24 Jun 2014 22:25:23 +0200	[thread overview]
Message-ID: <53A9DEB3.6030603@redhat.com> (raw)
In-Reply-To: <CACtCCo-4CoJLzOhpSHKgJ__Dx_RpjHM67MV4_ph4e1DpGD25Bw@mail.gmail.com>

Il 24/06/2014 21:55, Xiongzi Ge ha scritto:
> Hi Paolo,
>
> I am trying to do migration with two different block devices in the
> source and destination hosts.  For example, in the source the data in
> /dev/vda are  'aaaaa'. The guest has a cache. These data are cached.  In
> the other host, the data in this device are 'bbbbb'.

Again, what you are doing is invalid.  The point of migration is to have 
the same thing running on the source and destination, including disk data.

> If we do migration, I want the  guest vm recognize this change.

This is not _what_ you want to do.  This is _how_ you want to do it.

(Example: you eat a big mac.  _What_ you want to do is not being hungry. 
  _How_ you want to do it is going at McDonald's and grabbing a 
sandwich.  Similar to your migration example, there's probably a better 
way to achieve your objective).

So, why do you want data to change upon migration?

> How does qemu deal with the cache data?  Thanks.

It's not QEMU that's caching data, it's the guest.  There's nothing that 
QEMU can do about it.

Paolo

  reply	other threads:[~2014-06-24 20:25 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-24 19:18 [Qemu-devel] Live Migration with different block devices Xiongzi Ge
2014-06-24 19:37 ` Paolo Bonzini
2014-06-24 19:55   ` Xiongzi Ge
2014-06-24 20:25     ` Paolo Bonzini [this message]
2014-06-24 20:34       ` Xiongzi Ge
2014-06-24 20:41     ` Eric Blake
2014-06-24 20:47       ` Paolo Bonzini
2014-06-24 21:26       ` Xiongzi Ge
2014-06-24 21:39         ` Christopher Covington
  -- strict thread matches above, loose matches on Subject: below --
2014-06-24 19:22 Xiongzi Ge
2014-06-24 21:29 ` Brian Jackson
2014-06-24 23:16   ` Eric Blake
2014-06-25  0:08     ` Xiongzi Ge
2014-06-25  2:10       ` Eric Blake
2014-06-25  6:18       ` Paolo Bonzini
2014-06-25 14:14         ` Xiongzi Ge
2014-06-25 14:18           ` Paolo Bonzini
2014-06-25 14:32             ` Xiongzi Ge
2014-06-25 14:39               ` Paolo Bonzini

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=53A9DEB3.6030603@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=gexxx132@umn.edu \
    --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).