From patchwork Wed Apr 30 15:06:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Franciosi X-Patchwork-Id: 29429 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 75F24203F3 for ; Wed, 30 Apr 2014 15:18:17 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id wn1sf9613751obc.9 for ; Wed, 30 Apr 2014 08:18:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-post:list-help:list-subscribe:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:list-archive:content-type:content-transfer-encoding; bh=CUUxiLI6QrZ4BSTT064MIBTuQHF8mQ+cKLpxj8BOIdY=; b=NW6cl3bFq4BSkpjfS4VyGSq54A45GE07ynflNyIFAHjdBhmSclz4mktVaLrvHpGhCs N5XRDza5GdoyntWriPDPxGsJdFLKSkHsjIjgDfal7DMWmWbdrDQANCD6rR9kVYuRuu7o KxNWsm39hlvZBaRKVmzOQISqnC2ExsHOGrA/iHv7RfLXvh0KqrcnVBzpxSRB+EjwCXiz 7DG1BCyqTNxi1hVIQ+ZeUV0X/rX70uTTTHso9vdA24VMjY91c4mQRElerICP70F1J3jp L1FHvX5nsUkXHxtgGl93zpZB74JzSXht8Da/MRKduZHWvlh02BJHoJyyIzDQUx1Erqsu hBEw== X-Gm-Message-State: ALoCoQmyV8SN6q3OUXQ/JivCI7gSDr5Aw18ksSvZh9wFpaeen2ZAc7SSSuPUtNc8PMhE3MHuE3Go X-Received: by 10.182.120.129 with SMTP id lc1mr2635885obb.21.1398871097006; Wed, 30 Apr 2014 08:18:17 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.30.4 with SMTP id c4ls604264qgc.51.gmail; Wed, 30 Apr 2014 08:18:16 -0700 (PDT) X-Received: by 10.58.76.163 with SMTP id l3mr83728vew.74.1398871096832; Wed, 30 Apr 2014 08:18:16 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id sc7si5372975vdc.103.2014.04.30.08.18.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 30 Apr 2014 08:18:16 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id pa12so1347451veb.40 for ; Wed, 30 Apr 2014 08:18:16 -0700 (PDT) X-Received: by 10.221.26.10 with SMTP id rk10mr4333203vcb.0.1398871096732; Wed, 30 Apr 2014 08:18:16 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp287480vcb; Wed, 30 Apr 2014 08:18:14 -0700 (PDT) X-Received: by 10.224.151.82 with SMTP id b18mr6079584qaw.27.1398871094105; Wed, 30 Apr 2014 08:18:14 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id d5si11223745qad.109.2014.04.30.08.18.13 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 30 Apr 2014 08:18:14 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WfWEW-0000tv-Cs; Wed, 30 Apr 2014 15:15:40 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WfW7m-0008QE-U2 for xen-devel@lists.xen.org; Wed, 30 Apr 2014 15:08:43 +0000 Received: from [85.158.139.211:24774] by server-7.bemta-5.messagelabs.com id 7E/27-20531-AF111635; Wed, 30 Apr 2014 15:08:42 +0000 X-Env-Sender: felipe@paradoxo.org X-Msg-Ref: server-7.tower-206.messagelabs.com!1398870519!1570754!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 26834 invoked from network); 30 Apr 2014 15:08:40 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-7.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 30 Apr 2014 15:08:40 -0000 X-IronPort-AV: E=Sophos;i="4.97,959,1389744000"; d="scan'208";a="125357428" Received: from accessns.citrite.net (HELO FTLPEX01CL02.citrite.net) ([10.9.154.239]) by FTLPIPO02.CITRIX.COM with ESMTP; 30 Apr 2014 15:08:38 +0000 Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.79) with Microsoft SMTP Server id 14.3.181.6; Wed, 30 Apr 2014 11:08:36 -0400 Received: from godfather.uk.xensource.com ([10.80.2.155] helo=godfather.uk.xensource.com.) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1WfW7g-0003io-AQ; Wed, 30 Apr 2014 16:08:36 +0100 From: Felipe Franciosi To: Date: Wed, 30 Apr 2014 16:06:24 +0100 Message-ID: <1398870384-8607-2-git-send-email-felipe@paradoxo.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1398870384-8607-1-git-send-email-felipe@paradoxo.org> References: <1398870384-8607-1-git-send-email-felipe@paradoxo.org> MIME-Version: 1.0 X-DLP: MIA2 X-Mailman-Approved-At: Wed, 30 Apr 2014 15:15:39 +0000 Cc: george.dunlap@eu.citrix.com, Felipe Franciosi , ian.jackson@eu.citrix.com, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com Subject: [Xen-devel] [PATCH RESEND 1/1] libxl: introduce an option for disabling the non-O_DIRECT workaround X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: felipe@paradoxo.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: From: Stefano Stabellini 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. 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 | 4 + tools/libxl/libxl.h | 7 + tools/libxl/libxl_types.idl | 1 + tools/libxl/libxlu_disk_l.c | 681 ++++++++++++++++++----------------- tools/libxl/libxlu_disk_l.h | 2 +- tools/libxl/libxlu_disk_l.l | 1 + xen/include/public/io/blkif.h | 22 ++ 9 files changed, 428 insertions(+), 334 deletions(-) diff --git a/docs/misc/vbd-interface.txt b/docs/misc/vbd-interface.txt index 3952e73..f873db0 100644 --- a/docs/misc/vbd-interface.txt +++ b/docs/misc/vbd-interface.txt @@ -125,3 +125,9 @@ because they directly map the bottom 8 bits of the xenstore integer 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. diff --git a/docs/misc/xl-disk-configuration.txt b/docs/misc/xl-disk-configuration.txt index cf22397..11fee9a 100644 --- a/docs/misc/xl-disk-configuration.txt +++ b/docs/misc/xl-disk-configuration.txt @@ -178,6 +178,44 @@ information to be interpreted by the executable program