From patchwork Thu Nov 2 18:06:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joao Martins X-Patchwork-Id: 10039139 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1E035600C5 for ; Thu, 2 Nov 2017 18:09:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 17B302897E for ; Thu, 2 Nov 2017 18:09:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C91528BFE; Thu, 2 Nov 2017 18:09:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A87CE2897E for ; Thu, 2 Nov 2017 18:09:25 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAJt8-00055o-IK; Thu, 02 Nov 2017 18:06:46 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAJt7-000551-Pu for xen-devel@lists.xen.org; Thu, 02 Nov 2017 18:06:45 +0000 Received: from [85.158.139.211] by server-7.bemta-5.messagelabs.com id F6/2A-01785-4BE5BF95; Thu, 02 Nov 2017 18:06:44 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupmkeJIrShJLcpLzFFi42KZM10+UHdL3O9 Ig09zRC2WfFzM4sDocXT3b6YAxijWzLyk/IoE1owTMwwKbnNXzL55jqWB8TpnFyMnh5DAJCaJ Xfstuxi5gOw/jBKNG64wQjgbGCWa7+9ggnC6GCV+vbrCDNLCJqAn0Xr+M5gtImAk0XZ8IjtIE bPAFEaJ76+eM4IkhAX8JOZt7AAq4uBgEVCV2LqQCyTMK2Ancf33abASCQF5iV1tF1lBSjgF7C UmzCiAuMhOonvNFnaIEmOJ9rcX2SYw8i1gZFjFqF6cWlSWWqRrrpdUlJmeUZKbmJmja2hgqpe bWlycmJ6ak5hUrJecn7uJERgkDECwg/HYZOdDjJIcTEqivHc3/ooU4kvKT6nMSCzOiC8qzUkt PsQow8GhJMG7MfZ3pJBgUWp6akVaZg4wXGHSEhw8SiK8d0DSvMUFibnFmekQqVOMxhwdN+/+Y eJ4NvN1A7MQS15+XqqUOO9dkFIBkNKM0jy4QbA4usQoKyXMywh0mhBPQWpRbmYJqvwrRnEORi VhXm+QKTyZeSVw+14BncIEdIqXxA+QU0oSEVJSDYz8Wm7iK6au3SGt+kTr2pGolw+tErTtVhS dj5FcuKA2uHp368Es34VL+w7Y2YQ3tLAbnufVf5jkE+Hv1Zz76e7Pz7qGbKc3v1aSY1Gsblzk tuLT5+qFGpv89hkeUTvr0yB7urgsVt+ON6vwgrvEGQsm/a08y+1/3mrpEdB1/KB4fEG2xbVv0 UosxRmJhlrMRcWJABoJYZ6eAgAA X-Env-Sender: joao.m.martins@oracle.com X-Msg-Ref: server-9.tower-206.messagelabs.com!1509646002!109979988!1 X-Originating-IP: [156.151.31.81] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTU2LjE1MS4zMS44MSA9PiAyODgzMzk=\n X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 37867 invoked from network); 2 Nov 2017 18:06:44 -0000 Received: from userp1040.oracle.com (HELO userp1040.oracle.com) (156.151.31.81) by server-9.tower-206.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 2 Nov 2017 18:06:44 -0000 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vA2I6e9d017662 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 2 Nov 2017 18:06:40 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vA2I6dK0008899 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 2 Nov 2017 18:06:40 GMT Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id vA2I6dQR007922; Thu, 2 Nov 2017 18:06:39 GMT Received: from paddy.uk.oracle.com (/10.175.173.7) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 02 Nov 2017 11:06:39 -0700 From: Joao Martins To: Xen Development List Date: Thu, 2 Nov 2017 18:06:09 +0000 Message-Id: <20171102180616.24084-2-joao.m.martins@oracle.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171102180616.24084-1-joao.m.martins@oracle.com> References: <20171102180616.24084-1-joao.m.martins@oracle.com> X-Source-IP: aserv0022.oracle.com [141.146.126.234] Cc: Joao Martins , Roger Pau Monne , Konrad Rzeszutek Wilk Subject: [Xen-devel] [PATCH RFC 1/8] public/io/blkif: add directory for backend parameters X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP The proposed directory provides a mechanism for tools to control the maximum feature set of the device being provisioned by backends. Examples include max ring page order, persistent grants, number of queues etc. Signed-off-by: Joao Martins --- xen/include/public/io/blkif.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/xen/include/public/io/blkif.h b/xen/include/public/io/blkif.h index 15a71e3fea..4c0a93a2bf 100644 --- a/xen/include/public/io/blkif.h +++ b/xen/include/public/io/blkif.h @@ -133,6 +133,20 @@ * This option doesn't require a backend to use O_DIRECT, so it * should not be used to try to control the caching behaviour. * + * require + * + * The directory "require" maybe be created by tools domain to + * override the maximum feature set that backend provides to the + * frontend. The children entries within this directory are + * features names and its correspondent value e.g.: + * + * /local/domain/X/backend/vbd///require + * /local/domain/X/backend/vbd///require/multi-queue-max-queues = "2" + * /local/domain/X/backend/vbd///require/feature-persistent = "0" + * + * In the example above, block backend will negotiate up to a maximum of + * two queues with frontend plus disabling persistent grants. + * *--------------------------------- Features --------------------------------- * * feature-barrier