From: "Darko Petrović" <darko.b.petrovic@gmail.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: Zero-copy block driver?
Date: Sat, 29 Jan 2011 13:06:39 +0100 [thread overview]
Message-ID: <4D4402CF.9000201@gmail.com> (raw)
In-Reply-To: <AANLkTinWy1tE3d2=NtCHFGgpLrkKXcrdbJPqJqzsMiYM@mail.gmail.com>
Thanks for your help. Actually, I am more interested in doing it from
the outside, if possible (I am not allowed to change the application
code). Can the guest be tricked by KVM somehow, using the appropriate
drivers? Just to clear it out, copying to/from a host buffer is fine, I
just want to avoid having guest buffers.
Cheers!
Darko
On 01/29/2011 10:49 AM, Stefan Hajnoczi wrote:
> Inside the guest, open files using the O_DIRECT flag. This tells the
> guest kernel to avoid the page cache when possible, enabling
> zero-copy. You need to use aligned memory buffers and perform I/O in
> multiples of the block size.
>
> See the open(2) man page for details. Make sure you really want to do
> this, most applications don't.
>
> Stefan
next prev parent reply other threads:[~2011-01-29 12:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-29 3:55 Zero-copy block driver? Darko Petrović
2011-01-29 9:49 ` Stefan Hajnoczi
2011-01-29 12:06 ` Darko Petrović [this message]
2011-01-29 12:46 ` Stefan Hajnoczi
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=4D4402CF.9000201@gmail.com \
--to=darko.b.petrovic@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=stefanha@gmail.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