From patchwork Fri Dec 30 14:31:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Butsykin X-Patchwork-Id: 9492305 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 F100860453 for ; Fri, 30 Dec 2016 16:03:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E05D11FF29 for ; Fri, 30 Dec 2016 16:03:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D114022638; Fri, 30 Dec 2016 16:03:42 +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=-6.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A187F1FF29 for ; Fri, 30 Dec 2016 16:03:41 +0000 (UTC) Received: from localhost ([::1]:40490 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMzed-0001Bc-S7 for patchwork-qemu-devel@patchwork.kernel.org; Fri, 30 Dec 2016 11:03:39 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMzeJ-0001BV-UL for qemu-devel@nongnu.org; Fri, 30 Dec 2016 11:03:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cMzeG-0002W7-AV for qemu-devel@nongnu.org; Fri, 30 Dec 2016 11:03:19 -0500 Received: from mail-db5eur01on0115.outbound.protection.outlook.com ([104.47.2.115]:58821 helo=EUR01-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cMzeF-0002UL-Pv; Fri, 30 Dec 2016 11:03:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=cYl4cHAepjh+9Js+ddJdZJFAZeKYPD2/TrSfhGPM+h4=; b=BXrRHPF+KOXxnhvtZIVyuSuHSlXy5AbO97EnkL4rXHeOZWg5gwMcRFPDO5r0Ciz9h41/e/+pOcNPJZFHgw+p5joLSDjhz5VzlcBHTZTvpMi+0iCHEn2iDksC7jKprqL1SQgHPw6dSaIKTKN0t9sPHbcGu3ouCFY0LL5rMFJdn10= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=pbutsykin@virtuozzo.com; Received: from pavelb-Z68P-DS3.sw.ru (195.214.232.6) by HE1PR0802MB2555.eurprd08.prod.outlook.com (10.175.35.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.11; Fri, 30 Dec 2016 14:32:15 +0000 From: Pavel Butsykin To: , Date: Fri, 30 Dec 2016 17:31:41 +0300 Message-ID: <20161230143142.18214-18-pbutsykin@virtuozzo.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20161230143142.18214-1-pbutsykin@virtuozzo.com> References: <20161230143142.18214-1-pbutsykin@virtuozzo.com> MIME-Version: 1.0 X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1PR0802CA0010.eurprd08.prod.outlook.com (10.172.123.148) To HE1PR0802MB2555.eurprd08.prod.outlook.com (10.175.35.148) X-MS-Office365-Filtering-Correlation-Id: b4e6c0fe-64b9-47ba-a793-08d430c0a6cc X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:HE1PR0802MB2555; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0802MB2555; 3:XD8xAZ1hE3b87E3vD9ydUaDLUnDD0LAtcMjA52N7z31at/oNk9I5i1XBxcqiml6Xs9TmQjhXkYUZwDA6c+WJTMG4OkuW4FtJz1hgyRZZgdYfDKHPQDUqMM+/CZ1UjP3hVAmPzxttElOtCe6/hXYBfLE5xeBnxB9tVcP8sKTDN4332HCBGYs7OJXfhWxm9mPFOhPzqq5ootzvtF+Nwagf2yNxpaDUFvVabJufmkO/3/NuQKtdKyQq/eZcQxUdvmI7E0CMj1AhuGHb7WmuarK0dw==; 25:Zo3B0+7AshuRy2Tsgd0McnvzgvhIsS6TZQTpRxzt0Do1U+F96ldg/BTsIyFMVn6d8LNvJXO0MsaNow/dj88fSSOap3AYCFqa7a0EyKkNu0dSkxKjmukRJ48h0zxl441W9HZ3AGYTGAAHX3oJNchU1aTevfgjKDBlCiVyiBYR5aqeeM/ClwylUaq4eCsfYEmwVfd2QNYbT8LNyzDq8Ibt8balCSxc/q14Ri/VxH84mQ8ugZvJKG8JCI67l5fs+Y5Sd/31GqnBSJxHOvDFiA61nlBCDvp67otMhn4aUQA64yMQfa8Q3MysvCVhj+6gfhGy/fQ2fXa6SguK2rP/LZP2qQvQJeKeRLNAygKHesSorxhg/mL2cQe2I4sMsyxcw3K4wU2YD0/YmTYkTY5IZobwwFURPOf4GjzIpbclp2tDHWXQ5gAQfoTpxH16QMmUDQuoQK6PHfU3EQ8lJ2MxzPoXJw== X-Microsoft-Exchange-Diagnostics: 1; HE1PR0802MB2555; 31:3a5iCe6xiBZguSXeexuibwGePp05VADeq7fBN43kcG/COaNt3HOtbXtLX/+yUFItuDD/zUzzTrbqozA+AuPcvYC54N5qELbJnWLY+ksd+G0AHp18s2PBbhywEq2S4Na8u2TUy5fn6MM/iVPxlI+a6ptriq7F1xRfSdI4CEzm9tnWn95n7+W5dR1XRxrFnaJdcVYn5AXMQ5w6YOGuXVn3ezKtjFtOzipA5G3jNp1S7nc6vt6Z5l8uv9cNgs0DJiXm6JSc57jgkU/4Ocu3Q96uqQ==; 20:5/FhvNK45jCJUn5ZZQuuqpH1fg9FP7d8dZsl6WS40bXGYM0/RoKRpZgWPg2rJROMWqBY4QL6Vm/KuholCcxCXUXbq31BWwiXPkCRD4DzA3jgiHayqJccZCbXhuOU3OBBvcq2l63JI5tjkiWR3EOQkeuV6V1C+cKgaXNdlW5VfmB1ZyYhdOHbxm10cMgvPPyG2VOf0ReK+p1SIPT7LYpTDN7BGx8Eng75DpXjtx+H/NTEIbri1CnJorQulAz+20+1 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123564025)(20161123562025)(20161123555025)(20161123558021)(20161123560025)(6072148); SRVR:HE1PR0802MB2555; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0802MB2555; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0802MB2555; 4:UqSqldVf5vD0ho0OYyWsheVEWegz6yL/rBi5OeKf3dTLlCO2CYPd8G+b6XhO/DZNK9t+oGfJbwv7FpUMsUb0SCQtLXSHMS4qjowYavIWUQ11XRd7A6qBd2DwVUbvoCm6xDVk+LSi2+Kqn+Ni3ZdT/5duI0NM8CGkQ+lLWgKyiYrUWHMQzeFgZnddj0bB61DRiFspWkgNMTsgtLT02pFVv12r7PnN0icZAvHU/jvpQIon7JWeVEibkxyopGh2J9wmWiEhRgkx58SlKyUdJL04DQQgngEOzBDmzI0cJsuOfEupCTTjWzT2Qhau0gML8/fpHAot3SXKKERgWnyseCt7oHTRYZDZIwWnNGjT6MBZhWzGHf1ExRZza2IKjlnMg1Jp3mD7JrMtbhihZ28BrjdbxkofdO0mOvWVs/GxbSHsSm7vFcbMs5vXjLv6z4Fan9LHWuRV3iKmCoKCN0dFAZ4eL71upFvYEGL518a26qHaqwRESVNrm6k//zbHJL6yXBPumePSEdInGwnIy0rTU1eNW/W2Ucp9KfBYc2EiQ1e00LJAbOY50u0Gt6XVWty/Bm0Kzo67mqIXJ7Ou3XwpjRYLvzvz+lLwRT2VOThCjeIwsfM= X-Forefront-PRVS: 0172F0EF77 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(39450400003)(199003)(189002)(6666003)(5660300001)(189998001)(5001770100001)(50226002)(81156014)(81166006)(5003940100001)(8676002)(97736004)(47776003)(66066001)(6486002)(36756003)(6116002)(3846002)(76176999)(105586002)(33646002)(92566002)(305945005)(38730400001)(50466002)(106356001)(50986999)(1076002)(6506006)(6512006)(69596002)(4326007)(2950100002)(25786008)(2906002)(7736002)(68736007)(53416004)(42186005)(48376002)(101416001)(86362001); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0802MB2555; H:pavelb-Z68P-DS3.sw.ru; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0802MB2555; 23:QzaoZFF8yHVFwbm3q0SQzJAArk16DQ85cXc71D9?= =?us-ascii?Q?PIOZntKS7o4r8lDVlIBEFW/O3TUbatRoDqKuye2OHTRcqYFbZm7h3CrKUNLY?= =?us-ascii?Q?jIQLQC0odNAxv/GXakd+72o9TKR+qZBhvsC+9uF72vmwTnNtfrHAYCmc3Tsf?= =?us-ascii?Q?lxUnm77LeeBzzGWn8TlPTMQW86zhuduoAJiMNLbhw5JwIGRjIGtb5iG83Ecq?= =?us-ascii?Q?iNTzKVE6VJlunSHxaXkexlCDpbfeoiKQrlye5/DXlQUI4SLChdUXiv1Vf8rD?= =?us-ascii?Q?jNJxtExVJ4q5it3pei2Ny0mxDJ2GUg3jT4BhE6zwz8PaCKEKySNZPcywZHEn?= =?us-ascii?Q?nnclH3QAAbaY+EBumPvNiFrXp3jPb5JZzHy/3vJU5UrASmkwIdYwuDusur7/?= =?us-ascii?Q?tqlT3IoZj5QBY/TYqOKs6CEx8ES4dA+kw9UkZ1gBa3eMYNbRrChuJLm1rnrW?= =?us-ascii?Q?/iJancJBWjym/Om4UJXfIDt+zrfVtU7FCtii9BeqPkOEkUdXdIQgieuGTHl0?= =?us-ascii?Q?OUv4pgsL+moFvxMs5MxPXemPLEMnLgMDEuJ2rBJonfDRoC8iQib6xPT7EMqf?= =?us-ascii?Q?jpFNCHUKFSD2rxfTPlEM/8jmU/7klXKiQn87FZlOhVphg0mDH0VbjxNhDZaC?= =?us-ascii?Q?7e9I/q2w9SOinOY2pjZ4licKUTGCeIh0SlWCeCJSL5udE55xnuvnKcH9utHf?= =?us-ascii?Q?bhpd2ZX5owk39gCSiJxD3FiKYEF/nbwLUAjD0CfF+bhXT9panAuFXVzY1FsL?= =?us-ascii?Q?EAbLL0kIs1kFFoTcs4aWnPCKYfPRHuTSy2OOTNdLKwio91J+7vLCj6aM/i4/?= =?us-ascii?Q?gNGTe2V11c0p5dOQakv/qZOzhFC6QncUBKQ3duF3FCEsVzE7zvcry1xW83+m?= =?us-ascii?Q?ZqQPQiucBrWsjBX1O3xF2o6kGUkoUPFfctZlML4lC/7bAkosTCIZljBM2kuF?= =?us-ascii?Q?hM13q3qw9c1U6jk0Dw8A5J20Vpcg3EvraRuLtH+Mx0wiYVI+Gy1DfqP/MYAh?= =?us-ascii?Q?qzt9bDaDfD1clnEdJ/bZ3Kz36mQslA5O7lP/OHLOYX4izmyE1yT+98zwigQT?= =?us-ascii?Q?uL7BmlbU2qibY32gIkz2k+e2nTUe3FKkffQv58TCQtnO2hI5oxpRYiTIDSkd?= =?us-ascii?Q?QKiWphSQWo7Y=3D?= X-Microsoft-Exchange-Diagnostics: 1; HE1PR0802MB2555; 6:mWcfy7Etlbr4Kb1tVVW3aunzUggbIv92onuj9cK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VAb76uN4TZbECQVoKZ44eMnCf2ISK9YGboPKw8mkSfus6H34mRD2EGQVk+Gp9oIQLuPBQwPdO29V/h9AIRpcmA4NGphW9RBprXTytorC/tIiI3CAoRG/SkjPB/SDG8m4qhg==; 20:GrvgM4Yw2duXo2ymTaUZkQo05RaYh/90jfcP/Ztsw/hqJUVUOVe42nGs2u/hJU8N4wbU96GiMyHlME04Fnir6qmEF3q8hAZmfMATRfxalp2DGdLtBShu66W4mC6nauwvqQwUEqNBQeEPYtFa7ENNtjeKRLS7lx6Um0JBfT0MN8I= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Dec 2016 14:32:15.3824 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0802MB2555 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.2.115 Subject: [Qemu-devel] [PATCH v2 17/18] qapi: allow blockdev-add for pcache X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, den@openvz.org, armbru@redhat.com, mreitz@redhat.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Pavel Butsykin --- qapi/block-core.json | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/qapi/block-core.json b/qapi/block-core.json index 6b42216960..00a6e15db3 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -1719,6 +1719,7 @@ # @nfs: Since 2.8 # @replication: Since 2.8 # @ssh: Since 2.8 +# @pcache: since 2.9 # # Since: 2.0 ## @@ -1726,8 +1727,8 @@ 'data': [ 'archipelago', 'blkdebug', 'blkverify', 'bochs', 'cloop', 'dmg', 'file', 'ftp', 'ftps', 'gluster', 'host_cdrom', 'host_device', 'http', 'https', 'luks', 'nbd', 'nfs', 'null-aio', - 'null-co', 'parallels', 'qcow', 'qcow2', 'qed', 'quorum', 'raw', - 'replication', 'ssh', 'vdi', 'vhdx', 'vmdk', 'vpc', + 'null-co', 'parallels', 'pcache', 'qcow', 'qcow2', 'qed', 'quorum', + 'raw', 'replication', 'ssh', 'vdi', 'vhdx', 'vmdk', 'vpc', 'vvfat' ] } ## @@ -1808,6 +1809,30 @@ 'base': 'BlockdevOptionsGenericFormat', 'data': { '*key-secret': 'str' } } +## +# @BlockdevOptionsPCache +# +# Driver specific block device options for pcache. +# +# @image: Reference to a block device image for caching. +# +# @pcache-stats-size: #optional Total volume of requests for statistics. +# +# @pcache-max-aio-size: #optional Maximum size of read request which is handled +# by pcache. +# +# @pcache-full-size: #optional Total cache size. +# +# @pcache-readahead-size #optional Prefetch cache readahead size. +# +# Since: 2.9 +## +{ 'struct': 'BlockdevOptionsPCache', + 'data': { 'image': 'BlockdevRef', + '*pcache-stats-size': 'int', + '*pcache-max-aio-size': 'int', + '*pcache-full-size': 'int', + '*pcache-readahead-size': 'int' } } ## # @BlockdevOptionsGenericCOWFormat: @@ -2402,6 +2427,7 @@ 'null-aio': 'BlockdevOptionsNull', 'null-co': 'BlockdevOptionsNull', 'parallels': 'BlockdevOptionsGenericFormat', + 'pcache': 'BlockdevOptionsPCache', 'qcow2': 'BlockdevOptionsQcow2', 'qcow': 'BlockdevOptionsGenericCOWFormat', 'qed': 'BlockdevOptionsGenericCOWFormat',