From patchwork Thu Jun 1 15:14:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Nefedov X-Patchwork-Id: 9759825 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 D912260375 for ; Thu, 1 Jun 2017 15:19:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C9A402074F for ; Thu, 1 Jun 2017 15:19:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE15E26247; Thu, 1 Jun 2017 15:19:16 +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 381AD2074F for ; Thu, 1 Jun 2017 15:19:16 +0000 (UTC) Received: from localhost ([::1]:45192 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGRsZ-0002YY-7f for patchwork-qemu-devel@patchwork.kernel.org; Thu, 01 Jun 2017 11:19:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGRoY-0000A3-NN for qemu-devel@nongnu.org; Thu, 01 Jun 2017 11:15:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dGRoU-0004eJ-Q9 for qemu-devel@nongnu.org; Thu, 01 Jun 2017 11:15:06 -0400 Received: from mail-eopbgr40133.outbound.protection.outlook.com ([40.107.4.133]:34349 helo=EUR03-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 1dGRoU-0004d9-H1 for qemu-devel@nongnu.org; Thu, 01 Jun 2017 11:15:02 -0400 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=CW+iTMzYgfXdZcjUkBpyvivIa0pDFZzQwk+fWd2idBQ=; b=edL+sJarci4Kh4SqzAKW3ExZWFVH3pUtGfr34RFYkzqjHxcnoYhlokGBB2atX8DS8MTUILaYuPJ7g4vUOAeQxz3Rp0nPHa2CLQQo44+hL7K+v/G8ivDNds3GeAWRf26/3+uElsZJjAPsSp4gOKG/nPWZNVOg4YjfPBML2OCJskg= Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none; nongnu.org; dmarc=none action=none header.from=virtuozzo.com; Received: from xantnef-ws.sw.ru (195.214.232.6) by VI1PR0801MB1999.eurprd08.prod.outlook.com (2603:10a6:800:8a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Thu, 1 Jun 2017 15:15:00 +0000 From: Anton Nefedov To: Date: Thu, 1 Jun 2017 18:14:21 +0300 Message-ID: <1496330073-51338-4-git-send-email-anton.nefedov@virtuozzo.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1496330073-51338-1-git-send-email-anton.nefedov@virtuozzo.com> References: <1496330073-51338-1-git-send-email-anton.nefedov@virtuozzo.com> MIME-Version: 1.0 X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: DB6PR1001CA0005.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:4:b7::15) To VI1PR0801MB1999.eurprd08.prod.outlook.com (2603:10a6:800:8a::20) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR0801MB1999: X-MS-Office365-Filtering-Correlation-Id: 216c9ffb-e191-4459-7c35-08d4a900f8fa X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:VI1PR0801MB1999; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1999; 3:LMb4a7aSV1mPKfI/aEqIYohnGm2j2tZF6ySujwE1JeXKPw5ok/bV73Dpt7nERr6mOrjP535wt4v4NSScQsqhIwF9WekRgyOyVo7DPcrG2MPDCGxcKfOfNySVigk3B7Snkk6cDs+SivgvGiCHUA1+BeVWiEBKVyP5RWzhXmnJn0iBC7uHf5SB6c/B7o76Usuzv5IDrGu8vgnaV9PvLwnPzdKA9Pse2JUtxpdaqV3azBJXMlr/fqCmzFjcqRZP4gnQNS1Cry9uYuVi0nrhv7DEys6oNNM4BHvauMO1mQCIdyqVhmu/UOCCtkzrh3MdObRzrUg4bwZk2U7OxiCKdiuKeg==; 25:BH9gjUcEuk6Tr5HIf3lgaG8m2O3p7E9o9iEgV+K6+yWDi5NXCNs5OOzNgp1povw12D2AtJatsk8On9TGEd6LvsJr/7ixOO/oD53eyrIHGJDtpOmCPk9+33sGfO8HBgH9aI1MmsVWNL8+1GWzrmErwO10QM/6FDA4KX+DcTgxH3HUJVolnirsavyomFGfGmXCWd0WhzB+4yAHpcwucMAwiXxvWNvFlWGSCOqunfVFbKA1sY1I4CHz3H68DmcxfYCyf40Y8AMzhM/NCpTZ7pHnTs5SKnaTDxCLzJGhgGUpRwmgTq1qTU+lqvATAR+ueVttq920rPojAzLDC6WvUZwBiQB1Fvw+p/soICjZSPhYrCakTZ5OwJC7R+KGtuQOr0Js3/kBHog2z33SgvbNCMjEdso5RaDnSzR+3lQRWOxrdjWAMjy0AL226J+swEw3dLYGV6Yq98CABBxbyn9W5ypdqIheRRIvBKi0C/FjlKNDr9o= X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1999; 31:rsvHQDT1lGZUVT4B4phH379xjtxj79/ffcMYwAss/X+qDFF0/DGlQFJH4BHcu+4yJYB4lEkfGlICW8FN8Pnjymfi1cFqSX+MOazHNY+XnD25e2XLVBkYlbMxA7Q0qNEa0UgKA/xyb9UEJ/AL58Au8fmtB4R1P8N+6qNm5/AzX6N8a5JimPWKJvo4sFvQv9/a7cokOElywLTrrvGE3uuAXGSh+M5LqKJwAV0s+xC1JWI=; 20:4t+DIw7dHpb5tBKWUa6iESEJ6HQPoWGDWH5HBEUs9FTmmKgina46MScrLZ++3wF0tJCbVkqPFD/5rCcEEiVw0h3TmcqSNXRNuoQOd3umAnziqN28Cny0uos2b38OEw2cqabrI6cQMMY3tn8y7/fyzDtNNEm+X6Fmp2HdfJkKmVg305J0XaqFsxP3WwD0YgE4qKcWDqk6YP6CiID51eJmjy2MvQUCoVGA8E6m6uaBvDuREMhfd5blfp1kOySwLU/+l5nztZ0rN6p+Iz9UjK3RA0zsREdl1j1vlnn6LDcrnWRwtKfb72ceSqXvD22fV8Up/0RR07/OOhvRYhpYuXqM2htq0tHQ1yChE4sqfHD/5yMnWNdV/rYh9sB6tdpn9O4Qxk29CB3LSU2wbyyDnJ850yIWUWpp0Pk9Wdf2/qnUHBU= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(3002001)(6041248)(20161123560025)(20161123558100)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:VI1PR0801MB1999; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:VI1PR0801MB1999; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0801MB1999; 4:IZr36oYKghCkZBVSWipQci28dOb4XVVfIp9QmC3j?= =?us-ascii?Q?eCr7SGlWvwFEYTN+XH+rgnykfLlnuNM+YTdL0l+uKCln5zHQqDMUhQPjx8UZ?= =?us-ascii?Q?aPKPtw12D38RklyVfrXl/62HVc3RU8UYoQ0xeD21/lAsmmMV8rWWFSFTqtIu?= =?us-ascii?Q?Cm+oYbzmaIJOGlwJW1zYeJQgcn2SOZcLcp/MKX7ktSLIEeOmqejWUAuj+imZ?= =?us-ascii?Q?K5jr4GJW8xAS1SH4sJCKusXU161K7Ahj0z569bx9ATzU0mfe0jMjtmNp//ug?= =?us-ascii?Q?jVB5gaFP0SXGphibCQZJbBbuySL22vbTHTh7cemDgWdvFClMfcw+DbEKnsgm?= =?us-ascii?Q?1R1+S4FyhefF0BX4xepjWukEylLWGCN9T4drTN5aAGqRdPbTNJUJVbrh+D1L?= =?us-ascii?Q?4xIqIizjvLpZdjBK1Z+4Vu04FfSF+hsKOCflGu8JRWs9ufmamXE2afEwxil0?= =?us-ascii?Q?wqRSLgrg8F0X2bnpKHb5xgXU55B42DQlVLq7i4jKfHQ1MBUWlUEC4R5DMVQh?= =?us-ascii?Q?jbxJemoNSjS2k1o8xG6mYBaWphHndCP3Pwf/lZfjVyNV0oaaq/p15J0xYe3g?= =?us-ascii?Q?QVO3Gtlc4nhPFjgeqWf4Oey4MmpzoKnlC2SFT0hoEYQCKoivEhGg9/03fr9i?= =?us-ascii?Q?Y7Xe1rYNUDtVPg47q9ssA3zhdUSN969t/7wz0bHSFMT+koPBiLe1HeWRVS0s?= =?us-ascii?Q?ssAieFaZI1f9+Bfw3hrEZvQss1JsvkI4jramj1aMRwrd8bDwRUG9+5nsMOp5?= =?us-ascii?Q?kEDcJum9mpGi4mdygrH2w6VjVvJgUZC63EjH/JKC8tWREvyNNOtd0S5suya5?= =?us-ascii?Q?Krgk8rY/8aEaZdCt5Rhp/8VGjEzrmHHExvvrecN1qGgoI8jiAX/4AhaCbwbQ?= =?us-ascii?Q?T2Iy9mK7Wyzw6kSh/DYNvmLL1y+ZtM0QrPXxQk2zKEdP50Fuwr3Aa82ss5vX?= =?us-ascii?Q?vVZgnwXYYRJiNKODs524F4zsSIN2LedIjLZqu6vUTcBJZuJPnhtMRBk4GyzQ?= =?us-ascii?Q?fpQyfbOc569PhMyUvKWYSB/RM7L8VlII3tT+76eLyepGneJMXS1+aF4WiJNE?= =?us-ascii?Q?yuC2b87phN0kTwa4u85PYpry+UKecoqyUc7sD9/FN8OeWEeeFRuu/vr7EHws?= =?us-ascii?Q?dKvjjhsz+K0cVft8ZYdUVDM5sCtB9TDP?= X-Forefront-PRVS: 0325F6C77B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(39830400002)(39450400003)(39400400002)(6916009)(6666003)(6486002)(7736002)(478600001)(5660300001)(305945005)(54906002)(53936002)(4326008)(6512007)(6506006)(2950100002)(110136004)(107886003)(3846002)(50226002)(8676002)(66066001)(42186005)(81166006)(38730400002)(25786009)(6116002)(76176999)(50986999)(47776003)(86362001)(5003940100001)(2906002)(2351001)(36756003)(48376002)(50466002)(33646002)(53416004)(189998001); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0801MB1999; H:xantnef-ws.sw.ru; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0801MB1999; 23:uKiJ3uGADr0Sb3p4yLYp/HxMqjjiByLWhiiTmWI?= =?us-ascii?Q?Lr5rnd+pGJqwbzavYjb4z0MQWWBAIHbneAICTKN6bFagXcjI7xk2IVEvVxte?= =?us-ascii?Q?pnbR43/Un4GWmoXphR+s9o9+xYyEuc31dwSZke9hOihUB0hu4K4NIPfM+NVY?= =?us-ascii?Q?/oEAN1fY3+KWppnxN+tDTA27s6LxkPaB+mhgTno7vE8TQwOEckxcmm9nLGo7?= =?us-ascii?Q?8Nb1IKCVMWFo/ha3ZhOkVY9yPVDMZNJGbXS3evz64UBzARcSmyTQSFJNTKjQ?= =?us-ascii?Q?nvEpDC6Wk89Bo8w8Vy6aR+U61YPSTAITjJE3/W8FYCKdZS4PS6QO90Rc0MQ/?= =?us-ascii?Q?4A03fNA29GZqtldOLJjJRgrLph3mzRG502/CW3qhXmN7UmizaX0XMliAveC4?= =?us-ascii?Q?5v18JaWe1optPYX9iTWp7yFyBZyz6gEgb0hgY/yT4/szPn+uYjraA6J34706?= =?us-ascii?Q?TytWY/zb5FrKdiEd9gZdezeG2MDP1tavKGoTLXrWRaZ7wppbXP478SDVjh0A?= =?us-ascii?Q?fBovdVy9olPUzwarGurzfBLktl/P+imd6ascgTAkbIffSUsvi1gmfYJ7v8SL?= =?us-ascii?Q?1o/CRt9jiCsvmaRWQ1cljUc/yRydoAet7VSp6nk5lHoE1YK8ObiRL3ecYvPO?= =?us-ascii?Q?HkmqZJERMUHt/RezHacRbngCNT7E9GzDjkKUvhnbqdC412FpwrSvc93+ebvI?= =?us-ascii?Q?8QF1cG6M9a1FiHOeeeY2Am9flh+Xq8dNQla9sW8zj9LfCBxgqZPjt3MEXeIq?= =?us-ascii?Q?0qsM4D/9TWNikbiHpt7mYBBBtZjs52joKSLqo+YaDBlISpfgx3GKiTDsTKd0?= =?us-ascii?Q?GEoXXqww6IyZ2sZGvdzXABCFCRWfXSNHbGYxsp9xi99yaQ9rEoQmN66u28iO?= =?us-ascii?Q?gtw/CweTYbldXaksqwLvMyaswL8RzivxwB3phcGlmrqKeRctX/l4ftDeLfsm?= =?us-ascii?Q?QRpROnB+YAvfpOc90aaZFnOXA5+5IDTkkeZFCkVf1DG1FvKxZaqRlWf/ELQu?= =?us-ascii?Q?xyCLnhnLPNnVbCGLshIFEsB6b+uCLCmm0q6dwAOo3yyToCXS6bys6T3QOjzg?= =?us-ascii?Q?yD3vnhVA=3D?= X-Microsoft-Exch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ImWsOZIP4YsIchmrYa+7fLGhxLO5; 24:HnW9G6Iy5m/WMHH2/r5EVxlzgzYpMyfcoHJDAnTyoKzgIUBbj1OpVFs85Moi0JfOb+/54/pkqkStWa1nKXpXaN0h3/Z60mzERGht9mKNDm0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1999; 7:gH0Kb1HKuGtro5rwPvAN9Ls/2vTqvcProFz0VLQr4wPRtf13EsWs1zFTBoRo8TUA4meMM+bBJf7aVS8vRo801FI74VmQnl6mb9Z8E55YuiNavfFUATnlEr5dHPBX6pHP5eisujaIVOxqphbyGQHUqNOyoyw3hNyR8MqA7hh0URj6OltIEOdOEc0PVOJW7qY5yQyovSQ92GxScHKyvBC2pHAca+nMyIga5Cdf8+sjJ+diPsCqew6r1R3hehnay13lADmWAGVMUOQc39bSV8WVsbZ7HWoGRWi2/tupSJASZ452hPt4nDOaZNh/2ytTxnVG18TGHuawhzRoPW3I6B1S0w==; 20:qDA9DllcYJgxIL2B3FlPqTZBAWRI3+FbS/NVmXLG+bsyds+eqGkZRu+qpOyGnX1hEiwIFhzuZGlIk8KwesZRTeibHH97+OrwHopvr5rH3NxPBFx/nrWFP3L31uMU77jZZzm9B6gCiChbeJ2+33pedzAIYCA+pfhJqEg6nPvIGfs= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2017 15:15:00.0529 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB1999 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.107.4.133 Subject: [Qemu-devel] [PATCH v2 03/15] blkdebug: support BDRV_REQ_ALLOCATE 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, Anton Nefedov , den@virtuozzo.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 Support the flag if the underlying BDS supports it Signed-off-by: Anton Nefedov --- block/blkdebug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/block/blkdebug.c b/block/blkdebug.c index a5196e8..8b1401b 100644 --- a/block/blkdebug.c +++ b/block/blkdebug.c @@ -415,7 +415,8 @@ static int blkdebug_open(BlockDriverState *bs, QDict *options, int flags, bs->supported_write_flags = BDRV_REQ_FUA & bs->file->bs->supported_write_flags; - bs->supported_zero_flags = (BDRV_REQ_FUA | BDRV_REQ_MAY_UNMAP) & + bs->supported_zero_flags = + (BDRV_REQ_FUA | BDRV_REQ_MAY_UNMAP | BDRV_REQ_ALLOCATE) & bs->file->bs->supported_zero_flags; ret = -EINVAL;