All of lore.kernel.org
 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] The first function called after migration for a block device
Date: Mon, 30 Jun 2014 12:48:04 +0200	[thread overview]
Message-ID: <53B14064.8010600@redhat.com> (raw)
In-Reply-To: <CACtCCo-QTDp72ZNDvk2rWUaA7bAv+6tTCo2jFqvFYKDObOVGqQ@mail.gmail.com>

Il 28/06/2014 00:54, Xiongzi Ge ha scritto:
> Hi Paolo,
>
> Thanks. I found a function called bdrv_invalidate_cache() in qcow2.c.
> After migration, it will be called to invalidate the cache of the block
> device?

Let me quote again:

>>     This function has *nothing* to do with the guest OS's
>>     cache.  That cache is managed by the guest OS and, as I have already
>>     told you multiple times, there is *nothing* that QEMU can do about it.
>>
>>     All you can do is use O_DIRECT in the guest.

Did you even *try* to understand this?!?

Paolo

  reply	other threads:[~2014-06-30 10:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-27 19:41 [Qemu-devel] The first function called after migration for a block device Xiongzi Ge
2014-06-27 21:49 ` Paolo Bonzini
2014-06-27 22:54   ` Xiongzi Ge
2014-06-30 10:48     ` Paolo Bonzini [this message]
2014-06-30 14:03       ` Xiongzi Ge
2014-06-30 14:35         ` Paolo Bonzini
2014-06-30 14:47           ` Xiongzi Ge
2014-06-30 15:13             ` Paolo Bonzini
2014-06-30 15:17               ` Xiongzi Ge

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=53B14064.8010600@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 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.