From patchwork Tue May 8 14:58:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Nefedov X-Patchwork-Id: 10386285 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 7F28A60236 for ; Tue, 8 May 2018 15:00:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CD5F28DE6 for ; Tue, 8 May 2018 15:00:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6BC6A28DD3; Tue, 8 May 2018 15:00:07 +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=-7.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, MAILING_LIST_MULTI, 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 D2DB528DE6 for ; Tue, 8 May 2018 15:00:05 +0000 (UTC) Received: from localhost ([::1]:51634 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fG460-0001oz-Nm for patchwork-qemu-devel@patchwork.kernel.org; Tue, 08 May 2018 11:00:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fG44g-0000EF-T0 for qemu-devel@nongnu.org; Tue, 08 May 2018 10:58:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fG44c-0001Uv-Pd for qemu-devel@nongnu.org; Tue, 08 May 2018 10:58:42 -0400 Received: from mail-db5eur01on0097.outbound.protection.outlook.com ([104.47.2.97]:13120 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 1fG44c-0001Tv-JB; Tue, 08 May 2018 10:58:38 -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=xD+f59x7tHJ5TsIe3zhWVfJhFzEy+yF6POlHjqjpYIQ=; b=b/XJ7IZRIMWBi75McSSoUFddbNVWdGu1hKmBdy3FRytqqb0FjDswlNXfpPEs9S97saR//1r8/boSb6MYPQlb6gq/8Dwa5itV7vZ4gzdLlzvB6NeO9Viqm+i1y896yXK+BE5TW61y+qSekJmsrhPblyFfPobKjUPpnj3UlMHuv7E= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=anton.nefedov@virtuozzo.com; Received: from xantnef-ws.sw.ru (195.214.232.6) by AM0PR08MB3347.eurprd08.prod.outlook.com (2603:10a6:208:5f::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Tue, 8 May 2018 14:58:36 +0000 From: Anton Nefedov To: qemu-devel@nongnu.org Date: Tue, 8 May 2018 17:58:09 +0300 Message-Id: <1525791496-125188-3-git-send-email-anton.nefedov@virtuozzo.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1525791496-125188-1-git-send-email-anton.nefedov@virtuozzo.com> References: <1525791496-125188-1-git-send-email-anton.nefedov@virtuozzo.com> MIME-Version: 1.0 X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: DB6PR07CA0020.eurprd07.prod.outlook.com (2603:10a6:6:2d::30) To AM0PR08MB3347.eurprd08.prod.outlook.com (2603:10a6:208:5f::20) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060)(7193020); SRVR:AM0PR08MB3347; X-Microsoft-Exchange-Diagnostics: 1; AM0PR08MB3347; 3:/tZBh36MPLtSsvcoaVHMD3p/mO/1h41QzG3EeOkBFmZHctPJpj6Fqc7yVSJ6SnmFhXStHKJe2o1jTnCTllaoq1y2jIs+LX8o/WUSpfVQ2Q2CjCA6iaJrGK4ie2yq3JSLqKORp/5XueUTgqwXPZHXtUD1Swn0wc2sGvXohSsQmxWIksqCBy9VKOd0E+mFdRk2cXPznXyABww7ejGlGjoybAu/b3mwNfAVCSYlCaky8CeSpbs6npom7xKrgsTZn3ls; 25:0GgsN4b67BJsVq7bCVd0v64oHorxyZ60oz8bGsBMKTM16p6S56hEZAYXiCnnJPLyz4hI0ry4qEP1MgE+LuP8cniiL0UsYzyl6YBAode2Qx6newNLPBi6LAXPAbvOniDdzWFmRTYut2CHHsDLSN8ZhCVm8175ZrJmlairxJCW9mpA8e1OPfvZQHj2zfsL7UcEnLe5x0kRDBytnF5fLGlEfIa6yt9f29TM6DKJ50frkR16TICwJQLPrCIGFufh+uWYEdHxYTWShhJbw3qzni8VclUKuYOsql2bQstzWGVnOhvAyO/oiw25BLnN/4MZQo9SLcz7IgeeL1qyVz5uehX/rg==; 31:/0leDxQv1sYBRlMpEzVRhytpHWkSU3nvsy7QmZZ6AIHxxoeUpfnrpgEX7C0sP0Y3timCZPCxYbeCjUCBxnx9i6wugcXp6gAp9XyRx9DXFB7aNvr13HU98FpGMwv7qD2gRcXxRDkMeh/nDFtb7BRReTFiqLcNu+f7w1kPIea4FEeBa6jDPvtQpI6QLpZif1Cw1mwMkeiI45kQLQTbFp7ZlBKmQKo1eOLIjVbCJKa4t4Y= X-MS-TrafficTypeDiagnostic: AM0PR08MB3347: X-Microsoft-Exchange-Diagnostics: 1; AM0PR08MB3347; 20:GHJSmVlgwH0JHSVvS3+5dXGIwAH9Lf8JyFBBt77Ry8B53E0jPRDDPz1uvMa0COIuQY5xTXJZudDFe5+cpx52fopY3SfpcimyE1Ed12ok0XZtMtqveZmoq12l8JA3j/OE6Gz+SLG50W50R9PzDrjU7aAsA86MO2Lt43UC0Q+o919ugD/VqwVRVBNj2p8EIinn0kpjQRn/2GCa7OUInZbBGpDnOKkemwWpw1oPXb9jUBOyAPRrWCQsdkWbSohn51tfaeyJnT5WFlYYEZvdTfEFDV7cW1YkTh4TMNOUTZka3/rsi9SBFcmQRLbeTyC9CiixfLSe9clhWlnIU9YNQPpb5ivRSC3cqsBPDcYpMPbHUYhzP9jUM0Uovewl/0J01Et/LHvwIjNDehCjZI5VUb6dK3bTUkQAuOrrQAqOOshly9aXOk9Q5BdSaFBm/2+tp88/OfYBPVWjwWtMFKgQ+/392AVVQJX/DGEtH8N/rsWSQxI2PhtEM890Q85Ctbxh9O7k; 4:7buMjBUug7R01V/DApwc8t8prTbukDxGMsA5gInlw0K0PWYZSHv435Jb4RnbZ7o5A/S0P6jf+SqcyDtZTHo5RsDu8efpcwsryyf3w25E7zeg70Ay4jO43TkvXY1QCtb27wFqvXX32AAhD2+D22mdHGEAx7NvPuzxzMDujG5WSoplvzxb2ByIPUs9NP9bKms956AOz31eqPHLj4a5ObaJXvLREIdTYORKXVk++0OYmx48fEWyB5Qe+Si5wE/ewIblY6i5DmKO5v/dr39p1QrBSg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3231254)(944501410)(52105095)(3002001)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011); SRVR:AM0PR08MB3347; BCL:0; PCL:0; RULEID:; SRVR:AM0PR08MB3347; X-Forefront-PRVS: 0666E15D35 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(39850400004)(366004)(376002)(396003)(346002)(39380400002)(199004)(189003)(5660300001)(6486002)(81156014)(8676002)(81166006)(97736004)(2361001)(6116002)(3846002)(2351001)(446003)(2616005)(44832011)(16586007)(956004)(486006)(316002)(305945005)(476003)(86362001)(11346002)(25786009)(68736007)(6916009)(6666003)(36756003)(69596002)(51416003)(66066001)(47776003)(386003)(6506007)(52116002)(8936002)(26005)(53416004)(55236004)(76176011)(105586002)(186003)(106356001)(16526019)(107886003)(53936002)(4326008)(7736002)(50226002)(50466002)(48376002)(478600001)(6512007)(2906002); DIR:OUT; SFP:1102; SCL:1; SRVR:AM0PR08MB3347; H:xantnef-ws.sw.ru; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM0PR08MB3347; 23:+wI8SN0nB3hCwjvzbVx3RshfwjnVT1JeyhZdm3lpF?= =?us-ascii?Q?Ky3KYOC79JRrj6i3sglRqROFqqlkqSMFBkPmyI0grAxupvU3pf68kbZ20Ca6?= =?us-ascii?Q?YrFDshrTbVPaugXvyAypFY3m1KsuNcRQlFAzrB/PcwXvaymhcmtmWw9q+55L?= =?us-ascii?Q?D2fHHZeyk8dx48xpX/Vo7fEvsUvgTpuwUCKT50YxhU80ID6VwUMTf2VBq6Bw?= =?us-ascii?Q?RLWYFYAhDut5JUQtd2h8AK1iRk6oNeoxIwtnZRCVAATtbviMzh5Yx6VoxxFN?= =?us-ascii?Q?owz3J4gz0iUQINfgstjT8rsHebr90vYuE4Ve2SaeQK88wfMKJEg3yEE7gGrD?= =?us-ascii?Q?Ec1JnXhak+IlM2BXpslJ0bdVQ/eqsbt+uAor8a70wEXL9reDC2E6XyEsRhgr?= =?us-ascii?Q?l6lj01dc691vDrtRLkrpD9ks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iagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM0PR08MB3347; 7:skDHB9WVBEV0j/qOVoRy5LdrJr2UvH3GQfWAWVjra9MBGKYOb0SI6gBJNSW5q6mg+2Z2PwFdfXx5//95o3Rp9rMJd84mtsiaLF/yju6SWiyKKOrY/eESJwnNrTWMEm0h4d9sGQzroW+/32lo1xn9oIeBpDR4VXc/livMRpVsSn6yv9hZf1wMjJpG47a3h1QsSC8LrTm6vqNCvZpwztq8SYR0YxKg3Lc5G11oEmJI9uNNL8sUgfaf5dAxuQn3gKay; 20:KbRd/UBiAzSNlLSr3lG1vZ4UDybqWpq8g9cJm64ZGPMZw/dVJu3ouMV2pH9aSCNzJ8xDM0/GggtUkFou1Q58Afi0Ur152IIztp2pjUVox9HYq81nXBO32pXWz/Ps6eGWqrRrP0qPOfzgX/EkB4e4lINm5NJP5ipSyNHnD+Evrfk= X-MS-Office365-Filtering-Correlation-Id: cc17d50d-6fbb-4f70-d425-08d5b4f42db8 X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2018 14:58:36.7088 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cc17d50d-6fbb-4f70-d425-08d5b4f42db8 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3347 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.2.97 Subject: [Qemu-devel] [PATCH v9 2/9] blkverify: set supported write/zero flags 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 , berto@igalia.com, 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 Signed-off-by: Anton Nefedov Reviewed-by: Alberto Garcia Reviewed-by: Max Reitz --- block/blkverify.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/block/blkverify.c b/block/blkverify.c index 754cc9e..496ae09 100644 --- a/block/blkverify.c +++ b/block/blkverify.c @@ -141,6 +141,15 @@ static int blkverify_open(BlockDriverState *bs, QDict *options, int flags, goto fail; } + bs->supported_write_flags = BDRV_REQ_FUA & + bs->file->bs->supported_write_flags & + s->test_file->bs->supported_write_flags; + + bs->supported_zero_flags = + (BDRV_REQ_FUA | BDRV_REQ_MAY_UNMAP) & + bs->file->bs->supported_zero_flags & + s->test_file->bs->supported_zero_flags; + ret = 0; fail: qemu_opts_del(opts);