xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Tim Deegan <tim@xen.org>
To: Olaf Hering <olaf@aepfle.de>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH] [RFC]: xenpaging: add command to to flush qemu buffer cache via VMCALL
Date: Thu, 8 Mar 2012 14:51:20 +0000	[thread overview]
Message-ID: <20120308145120.GL64337@ocelot.phlegethon.org> (raw)
In-Reply-To: <20120308144216.GA19728@aepfle.de>

At 15:42 +0100 on 08 Mar (1331221336), Olaf Hering wrote:
> On Thu, Mar 08, Tim Deegan wrote:
> 
> > At 17:15 +0100 on 26 Feb (1330276512), Olaf Hering wrote:
> > > # HG changeset patch
> > > # User Olaf Hering <olaf@aepfle.de>
> > > # Date 1330272880 -3600
> > > # Node ID e17afed13a35989bdf422b75d44843bfd2fda0f4
> > > # Parent  3ace34b89ebe3bdd6afb0bca85b0c1270f99c1bb
> > > [RFC]: xenpaging: add command to to flush qemu buffer cache via VMCALL
> > > 
> > > Is the approach taken in this patch ok?
> > 
> > Can you explain a bit more about what you're trying to do?
> 
> It looked easy to "inject" a request to send a flush to ioemu in this
> way. But it turned out that this approach will not work.

I think it could be made to work, but it will need more changes than
this.  Since the current mechanism is really only intended for guest
hypercalls it would need to be updated so that the flag is checked in
more places (say, on every VMENTER, or maybe somewhere a little less hot
like on interrupt injection).

How synchronous to you need the flush to be, btw?  If you need to be
sure it's completed then you probably can't go through the hypervisor.

> So both old and new qemu need a change to accept the flush command in
> some way. For old qemu the xenstore approach looks best, for the new
> qemu I need to dig into QMP.

Righto.  Can you please make sure that whatever you do for new qemu
doesn't require xenpaging and qemu to be in the same VM?

Cheers,

Tim.

  reply	other threads:[~2012-03-08 14:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-26 16:15 [PATCH] [RFC]: xenpaging: add command to to flush qemu buffer cache via VMCALL Olaf Hering
2012-03-08 14:29 ` Tim Deegan
2012-03-08 14:42   ` Olaf Hering
2012-03-08 14:51     ` Tim Deegan [this message]
2012-03-08 15:04       ` Olaf Hering
     [not found] <mailman.5740.1331218937.1471.xen-devel@lists.xen.org>
2012-03-08 15:08 ` Andres Lagar-Cavilla
2012-03-08 15:17   ` Tim Deegan

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=20120308145120.GL64337@ocelot.phlegethon.org \
    --to=tim@xen.org \
    --cc=olaf@aepfle.de \
    --cc=xen-devel@lists.xensource.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).