]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Add new attribute wrpolicy to <driver> element
authorDeepak C Shetty <deepakcs@linux.vnet.ibm.com>
Tue, 17 Jan 2012 12:44:18 +0000 (18:14 +0530)
committerEric Blake <eblake@redhat.com>
Tue, 17 Jan 2012 22:37:42 +0000 (15:37 -0700)
commitd9e0d8204b239f95449c8ab9f43b75b92ca39556
tree510cd1145dd85cfd31b7324828a6223c0288ac4d
parent9619d8a62e75d3af891db81bf3ee254ef7bfcd0f
Add new attribute wrpolicy to <driver> element

This introduces new attribute wrpolicy with only supported
value as immediate. This will be an optional
attribute with no defaults. This helps specify whether
to skip the host page cache.

When wrpolicy is specified, meaning when wrpolicy=immediate
a writeback is explicitly initiated for the dirty pages in
the host page cache as part of the guest file write operation.

Usage:
<filesystem type='mount' accessmode='passthrough'>
  <driver type='path' wrpolicy='immediate'/>
  <source dir='/export/to/guest'/>
  <target dir='mount_tag'/>
</filesystem>

Currently this only works with type='mount' for the QEMU/KVM driver.

Signed-off-by: Deepak C Shetty <deepakcs@linux.vnet.ibm.com>
12 files changed:
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
src/qemu/qemu_command.c
tests/qemuhelptest.c
tests/qemuxml2argvdata/qemuxml2argv-fs9p.args
tests/qemuxml2argvdata/qemuxml2argv-fs9p.xml
tests/qemuxml2argvtest.c