xen-unstable commit 6ec48cf41b6656c98148380f39010063e62628c5 Frp,: Stefano Stabellini Date: Wed Apr 30 16:06:24 2014 +0100 Subject: libxl: introduce an option for disabling the non-O_DIRECT workaround Document and implement a new option that permits disk backends which would otherwise have to avoid O_DIRECT (because of the network memory lifetime bug) to use it anyway. This is: direct-io-safe in the xl domain disk config specification direct_io_safe in the libxl disk API direct-io-safe in the backend xenstore interface Add a reference to xen/include/public/io/blkif.h in docs/misc/vbd-interface.txt. This change does not break ABI. Instead of adding a new member direct_io_safe to struct libxl_device_disk the existing readwrite member is reused. Signed-off-by: Stefano Stabellini Signed-off-by: Ian Jackson Acked-by: Ian Campbell Tested-by: Felipe Franciosi --- docs/misc/vbd-interface.txt | 6 +++++ docs/misc/xl-disk-configuration.txt | 38 ++++++++++++++++++++++++++++++++++++ tools/libxl/libxl.c | 2 + tools/libxl/libxl.h | 11 ++++++++++ tools/libxl/libxlu_disk.c | 2 + tools/libxl/libxlu_disk_i.h | 2 - tools/libxl/libxlu_disk_l.l | 1 xen/include/public/io/blkif.h | 22 ++++++++++++++++++++ 8 files changed, 83 insertions(+), 1 deletion(-) Index: xen-4.4.0-testing/docs/misc/vbd-interface.txt =================================================================== --- xen-4.4.0-testing.orig/docs/misc/vbd-interface.txt +++ xen-4.4.0-testing/docs/misc/vbd-interface.txt @@ -125,3 +125,9 @@ because they directly map the bottom 8 b directly to the Linux guest's device number and throw away the rest; they can crash due to minor number clashes. With these guests, the workaround is not to supply problematic combinations of devices. + + +Other frontend and backend options +---------------------------------- + +See xen/include/public/io/blkif.h for the full list of options. Index: xen-4.4.0-testing/docs/misc/xl-disk-configuration.txt =================================================================== --- xen-4.4.0-testing.orig/docs/misc/xl-disk-configuration.txt +++ xen-4.4.0-testing/docs/misc/xl-disk-configuration.txt @@ -178,6 +178,44 @@ information to be interpreted by the exe These scripts are normally called "block-