Re: Zero-copy block driver?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux