From patchwork Mon Jul 31 16:21:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Nefedov X-Patchwork-Id: 9872417 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 EDC28603B4 for ; Mon, 31 Jul 2017 16:24:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE1282810E for ; Mon, 31 Jul 2017 16:24:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D2CAA283BD; Mon, 31 Jul 2017 16:24:02 +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 6714A2810E for ; Mon, 31 Jul 2017 16:24:02 +0000 (UTC) Received: from localhost ([::1]:60512 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcDU8-0004oP-9w for patchwork-qemu-devel@patchwork.kernel.org; Mon, 31 Jul 2017 12:24:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcDSj-0004nq-BT for qemu-devel@nongnu.org; Mon, 31 Jul 2017 12:22:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcDSh-0005Ob-MB for qemu-devel@nongnu.org; Mon, 31 Jul 2017 12:22:33 -0400 Received: from mail-eopbgr10104.outbound.protection.outlook.com ([40.107.1.104]:11934 helo=EUR02-HE1-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 1dcDSh-0005Kw-Cw; Mon, 31 Jul 2017 12:22:31 -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=a+cMAEvCRkkhBOeyobA+PiAptJEP+cdTy1a+xL+wkFk=; b=ClLjN8oxVRb3qM6x1puN4UqS+wRtAG2Jznun/SVywRRbr76dVxqGswyJV+Q4/fbqnqUWkwcTrUYGtiBJoJaQHj65d3BMDai+QoSCIm2t6VNqzpJBjbn+rqn/UzkjQ2zHksyMyObnDo0G25zEXP5EvgclH7kdsH7v5hjMpCrNMJ4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=anton.nefedov@virtuozzo.com; Received: from xantnef-ws.sw.ru (195.214.232.6) by AM5PR0801MB1987.eurprd08.prod.outlook.com (2603:10a6:203:4b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1304.22; Mon, 31 Jul 2017 16:22:26 +0000 From: Anton Nefedov To: qemu-devel@nongnu.org Date: Mon, 31 Jul 2017 19:21:55 +0300 Message-Id: <1501518125-29851-4-git-send-email-anton.nefedov@virtuozzo.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1501518125-29851-1-git-send-email-anton.nefedov@virtuozzo.com> References: <1501518125-29851-1-git-send-email-anton.nefedov@virtuozzo.com> MIME-Version: 1.0 X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: VI1PR08CA0217.eurprd08.prod.outlook.com (2603:10a6:802:15::26) To AM5PR0801MB1987.eurprd08.prod.outlook.com (2603:10a6:203:4b::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 59617d16-edb8-4b06-d179-08d4d83055ca X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:AM5PR0801MB1987; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1987; 3:DVIxg9VVYAcrmy2HasSPbB0aIXi9kr/udSZs05w/WGHE6HODWDgADCl69wDx782ZAynQsOM0nkKJ/FC3Uo5LZKwUS7Tncy7GiIpMnYoRvprlqj8NkdPU6mOHSStbt1vT2zCJj9CiB7VUANoi4uvH8lbeA21xcB2YCGmby/7Yf5lHjP6BG5AG0Sq9rERs1kjq6FCpsi4tMB0b26J9Z/sOJcRZRi511dhQnDDAKhg7ZeQdqo2fZv71+rBOkBRYRCOjQThEfMSKWIvo06KcEPPw0iIpeP5z1xhZSMzo4IdjXEOVq+uYV61m0uROeiA7z9VVbDp8tIDshLQvSC3s6HPqo+azXU+LH9/MJIfhgJx1vzfNGIqlARdn1m0YhM0Rswh2vBGnXZ6N4ub2P0XvxtkMbQ/0V2gg/+5SL5kvhI/gjxPzcRaX74YAuEPjwUTPrLQXFSK8jnK+XHyzSfKiOMWXN5Jj+FF+CNnAVvFSIYFy8SwMK3nv7QilyA37kfZa5D1gTv/Y0VI/6D6RmtoG8apa5Tv/3+jT+5zOe5Mc6iyIdLpqemlaeZcxWJzEKjFe5LEfRWn9WW1z5bKvjh3mFYUpOEfiSYKBt/mrLPqgIZpRONv/xD+D6BhrEHgZIwmYGUQpEE4mPQHfltHpItDDAH8IfzBFY2p2/zGps05KTswMdjZYMLTfVhdK8QuF8iSojKlMmSdhOvBq87NaI33VR/xRi2V6atMlECjf6QPAOTCsPXrBFwK0GDb1D925oDTE5F0Lg2aV1DAlYn9XD+5FJPe+E8H+U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bn2D82Fqhvj4QApNAKdBuyxiMaLR5gCf6fd1pMGy4T3tbS5KM/us9imBS6IGaE3ecogw= X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6041248)(20161123558100)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM5PR0801MB1987; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM5PR0801MB1987; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0801MB1987; 4:r0Pqxfah/mFOlXLOKRNomCOPlwt+qX0sy+SyGxNi?= =?us-ascii?Q?Wq7rWMz4aI/6PRZIzb4zwIGGxR4jOOOO1sh88s71KIuQShxq7NT1SoxbcW+5?= =?us-ascii?Q?olhrYy2/12It5RTc1s9b0pCO9Aj2y8qdWMC2daFjltmrOG9n0KjJpVEskwEj?= =?us-ascii?Q?M1xsRxcRUh51tbxQ6uPApRHV2tMeUgNg4dTltlP93/TKizMA5hPQkrpY14Ju?= =?us-ascii?Q?sMxWDh6pBsfq7eDZoi/F6lRl4Hk7/G97menu9AIJf3r/9lSVeikrNoDdfSFT?= =?us-ascii?Q?0ixNCniPM+kb42h7x1I6fKJshBI6Ti9gSYhCe2J5nAl3VPvoGZgCtF9s+BJT?= =?us-ascii?Q?aagcpteLQqNqCUddXOaK50qQzNAKZeMYMwesMnLuTS5Toehu95Gk4g3Ir1sb?= =?us-ascii?Q?/Zqk9U20wCe0EAzHQjTt9sPpPCqGvq5kg+VI7eeAYULuNPXV/W37wj40FJMo?= =?us-ascii?Q?rofEgp2F/vXNJXiCR+iNfWmUwWr7OqJfCznFk3iIqlhR1jcjBKgQxMeoUaUg?= =?us-ascii?Q?rd/Z+upIdvy8w3wp2AKh1xY+j2e3fLK2nQsOYBcZ8WROTtwm0MzZjevBDY0u?= =?us-ascii?Q?YsNLXdFZybMwxPfjD7/yhk01COo8/RLt+V6q1k+k56EgU8tGVGVMOjaapDIW?= =?us-ascii?Q?u/dHy9jDK4n3YpdHR0goFMhEF3NVRuT3nCYtGSvhY8ZhT5b7mGpvnChvIyHo?= =?us-ascii?Q?BBh6hI0d7d+Xim/f3Cqve0N8MonAj6AFG6aQJUE9y7PoQjnYkMxpsBdhpavo?= =?us-ascii?Q?kVxSnz0cfW4XIhCnsGDeSDkW9NOGu7fU1UV0UUxt7lqlOdE/P627RDXt6MXB?= =?us-ascii?Q?M7cGGrT6g6tJVvA35j0V76doqB5QQrbDuQR/4n4/VyJbn+47+Pc27LC39yJY?= =?us-ascii?Q?yXZucQVOh1lRK20RJhIzzW6+pv2RbTbUedEck6h4gcRzPTjODKSBtgtTL4eg?= =?us-ascii?Q?e0ZO4hSdOHeOpGfEtItZVnF9K7IQMl5tCyW4sAiR3awFugmuxnwtO1yzK6oZ?= =?us-ascii?Q?7c09C66cFBNMLQBw+0M/H1gDXQ6CxEZ448b9o1xbw1F9lJHoBe3sdb0xMgcg?= =?us-ascii?Q?8+54HBogLIrlDuBcYjaGm/6rYIv44okajUcwpjfNCUnPtkKCqK+EwW2B83EL?= =?us-ascii?Q?ANaTWtrP2AVzi89pkH6+bTIWD1CDSbM6?= X-Forefront-PRVS: 03853D523D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(7370300001)(4630300001)(6009001)(39400400002)(39410400002)(39840400002)(39450400003)(199003)(189002)(5003940100001)(66066001)(47776003)(81166006)(53936002)(48376002)(101416001)(81156014)(50466002)(6506006)(36756003)(8676002)(305945005)(2950100002)(69596002)(189998001)(6486002)(4326008)(7350300001)(6666003)(2906002)(97736004)(50226002)(107886003)(110136004)(38730400002)(105586002)(25786009)(106356001)(53416004)(478600001)(6916009)(68736007)(2351001)(42186005)(2361001)(86362001)(7736002)(33646002)(76176999)(50986999)(3846002)(6116002)(5660300001)(6512007); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5PR0801MB1987; H:xantnef-ws.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; AM5PR0801MB1987; 23:FniNI0yLrBqZbXBounJ3z2+bdKYDWZcK7KM+Ush?= =?us-ascii?Q?iNzQL33ZaC8YAWIxvwW/sW9C02hJ9At6YFEl+GuIqS8mbHVUibdCMgKWpyGM?= =?us-ascii?Q?sM35nu38Lw3p6qok5chs9XBi02oxwCgW9cMuN/sJ1SmYBF0qS+H8HauoL4TJ?= =?us-ascii?Q?eFP6Y9gxJ+bDHXx7euYq1UvOoYpLMbx9CyBkkF46OdSdxlXHpFX3Zex/1SFS?= =?us-ascii?Q?KvCWFVYCPnBeJZHdIZ0KmvVUFUN75L72o/0TcRtKNh0ORkIOeOCWYSfZ4BM7?= =?us-ascii?Q?3eEF12KMkJSKOqG4L8Vfhoa06W0zjCDiticiCvb0ax/a6WwZgQ4PJqyP8xQo?= =?us-ascii?Q?OrcuM0HhnuCk8/VN9vkMFtBSdvBnZQoXzKPyyGRbWJM/kQ3hiMFVaYp0HpGf?= =?us-ascii?Q?uGYksKRLkTRNpo/s/sk2U7wBZw16UZcGWUzfRpFplZr1jGhu7EsI37h0E6j1?= =?us-ascii?Q?fvHKDmMU4GR7ryV+y8epagjyaDe7JjQpuSBZUh4zV6lS/WoZ4RTrKAhKsKvq?= =?us-ascii?Q?oR0mMY2PVgETqyXTRhdwj0H2SwNtWsnPlMHNi6v4dNDA+/GwTWNGjRfAo5tK?= =?us-ascii?Q?nLkYxhwP9xdvzRAB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eMjhFSblJcPHtYlYIOMbc8OadY?= =?us-ascii?Q?K/c=3D?= X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1987; 5:T/gxFTD1iSNnF8tqhYnZyi6jyfyL6OKdPlX6J+QCjReDXvHjtdi2bt8sMJHsXC6618BC9b/yUYUSXpmn1W6n2Ua9Y8wnQ09U6GjwyHUUnYsp4MQ+JO6bx48J0VY2PRMzycg1IibIyMA0r7m3zradPsQphndDoV1O/ZFxgiQKG4M/ejOPeSsonEodAEYU2yNQ3N2x2R+C4pJl8z2Z47hO4I4qRyj2aN4Plr5oCjRNG9Qx4PHu7oWBc6oHw78Z7vFtT31HXGZJMc1hiTHGgnETier7ZjWBXSNGCmhKymqq3buHrgzS2XpPwqBzKgrgJw2bYVdbsVZ1ITEZq0m7Ye1qoEnfnLqJYt5f0Kw2PDurVjmiucldLJInfJ2px1wUr/MmMidtgcSi57B9uhveHA+u3x9wxefcWom/xFUELzOu4p2gEEx52yp8FkEuRHcAPCOYAv8RoHz9evzKNG4GshwTKz1mPiXv06N7YxgQ1pRjumbFZUUbosE8z0JllASpTDB9; 24:lXxCvJP5xvX1wECztOjH5K9z+ablRvoF9loi47WF7YHZvJIo+7Wv1AEeDKHXaENiBfH6fFz0CxzIUXO57J60LHmA8c5mtBbAajtbeTRQpSc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1987; 7:yqQmAbKZCTWQd19043ceAR23bYtpwVSrsIB0We2ZGI8cg3QCJNxYCpL0O5hq3iWFHfLVNnAR9EHhnbjleNsAY+X5CanOb/i0bGu0DLYYlKsuXSbdEe2wU6p3AMls9gL6Slrh6/VXqEz6KMHKav2aaTSpLcFFvlpiCnNaj9BMgprVgGEm463PgaPoX2yj4Bgn0AF37YDtWUZkVO2l7tKxa7gsZmiJFP5TtaXf6161i8yRRN3HeQUq34Oj39ICzoncIjsVlr/27VFLwgjHax8+Ump9ZyjTrLutg+h1zvJR2s132T0TDoB1fFfEBfRvpFipXN7zOlkl5eJ6LkD+k54MpxQxnNYEuUuqDIHAV3Mu3QANgWn0E25mu9hBI1bvYz5jwJWOTN3aX+jc0GU9mrC8ZFOwK1ucuqL8axii7srFbGMpr0Ym1CLBakPHbYacfWkjtaVdEXuL4Fk6MBtGrk6IV5l6BUnRn9SI0gZe0dbo2HjjuBvhZV20CLO+Q6pxU7nv2uVpU/1HXjK71kbubOn/fGPAnkTR1NJar9CWILoi040zr2sFTn7EGq2Yj0W0Q15np5WTGUc0JbMLdzYnkWhCu+6asWHQUr5QXPGtLEj5Td1O/LGjolSmL2z5bEJrah2IyZTaHOU1940tlwr2mCcnwcPq22BNB+GP+78+ZSFzZCEG0LTYe1V0JkDVIlkXRzARjwTxMH0TltNVQuTTLsnAg6AnxX1AJk2ETPcpMIvT2Fp0qWShpD9gXr2XWv3JKLJ8JOGnuguMKVQ4MrNpDUTkZhPZgxsUG+snd4Tmowkfc1g= X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1987; 20:hynRkMS69rUY7EJz2kPnlk8GChTd70IqNKfOvlKvT+Wfg4/0lVZ83m17WoSbsvremcmMa+df2IMVOe2Qdb/bthdSE+Uhcyd84KAcVIXVydxiJZncdHT99NixN86M1U+KsrJ04XI9XrgYlWrdqlHiD0rjdQusdRONnMNswuu+pI4= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2017 16:22:26.8123 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB1987 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.107.1.104 Subject: [Qemu-devel] [PATCH v3 03/13] file-posix: 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, qemu-block@nongnu.org, 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 Current write_zeroes implementation is good enough to satisfy this flag too Signed-off-by: Anton Nefedov --- block/file-posix.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/block/file-posix.c b/block/file-posix.c index cfbb236..bd52b31 100644 --- a/block/file-posix.c +++ b/block/file-posix.c @@ -527,7 +527,6 @@ static int raw_open_common(BlockDriverState *bs, QDict *options, s->has_discard = true; s->has_write_zeroes = true; - bs->supported_zero_flags = BDRV_REQ_MAY_UNMAP; if ((bs->open_flags & BDRV_O_NOCACHE) != 0) { s->needs_alignment = true; } @@ -577,6 +576,11 @@ static int raw_open_common(BlockDriverState *bs, QDict *options, } #endif + bs->supported_zero_flags = BDRV_REQ_MAY_UNMAP; + if (s->has_write_zeroes || s->has_fallocate) { + bs->supported_zero_flags |= BDRV_REQ_ALLOCATE; + } + ret = 0; fail: if (filename && (bdrv_flags & BDRV_O_TEMPORARY)) { @@ -1390,6 +1394,9 @@ static ssize_t handle_aiocb_write_zeroes(RawPosixAIOData *aiocb) } #endif + if (!s->has_fallocate) { + aiocb->bs->supported_zero_flags &= ~BDRV_REQ_ALLOCATE; + } return -ENOTSUP; }