Message ID | 1509551048-129830-3-git-send-email-anton.nefedov@virtuozzo.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> 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 27986604D7 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 1 Nov 2017 15:49:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 247272837D for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 1 Nov 2017 15:49:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1925A28695; Wed, 1 Nov 2017 15:49: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 511AC28C2B for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 1 Nov 2017 15:49:00 +0000 (UTC) Received: from localhost ([::1]:56386 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1e9vGF-00028v-DG for patchwork-qemu-devel@patchwork.kernel.org; Wed, 01 Nov 2017 11:48:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <anton.nefedov@virtuozzo.com>) id 1e9vC7-00083T-8C for qemu-devel@nongnu.org; Wed, 01 Nov 2017 11:44:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <anton.nefedov@virtuozzo.com>) id 1e9vC2-0006bd-QK for qemu-devel@nongnu.org; Wed, 01 Nov 2017 11:44:43 -0400 Received: from mail-eopbgr40123.outbound.protection.outlook.com ([40.107.4.123]:6102 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 <anton.nefedov@virtuozzo.com>) id 1e9vC2-0006b4-Is; Wed, 01 Nov 2017 11:44: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=xPlpRvsQVsxszGFc4SFFmHY+biNAy/txMWfaE/wRjdI=; b=epSyXfzPFI8naCDFJQd8M6/q4WVHS/vpmgHhQ5f8kj3HKcVbYhZA+isyui5jqJmt1g+2T9fuVQOiKrtC0Pl2fm2+mQXBMveXnwEmtS9vM0vjRgQwoam6mP/JN7/GsScOWM8gd4TFhp+EsXgHj+3ZdI2pbubo6MBo0Vf/JNPBeYc= 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.20.178.6; Wed, 1 Nov 2017 15:44:36 +0000 From: Anton Nefedov <anton.nefedov@virtuozzo.com> To: qemu-devel@nongnu.org Date: Wed, 1 Nov 2017 18:43:55 +0300 Message-Id: <1509551048-129830-3-git-send-email-anton.nefedov@virtuozzo.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509551048-129830-1-git-send-email-anton.nefedov@virtuozzo.com> References: <1509551048-129830-1-git-send-email-anton.nefedov@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: VI1PR0501CA0017.eurprd05.prod.outlook.com (2603:10a6:800:92::27) To AM5PR0801MB1987.eurprd08.prod.outlook.com (2603:10a6:203:4b::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5870df33-255d-444b-cf1a-08d5213f74f4 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(2017052603199); SRVR:AM5PR0801MB1987; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1987; 3:D51Zh/QUJQIYXsp7VJuVTd0jK9DflayyhmJyujnsfJEjT+UTmV0pl4wlyE4NAp0lWnVgT6WyOjTwlRR2XYpvBy1T2IrxHpw/bGeLFfDm05BN/kqxn+3zge9TZh1KQXoVUj58LtWjonN+pRff8q5E+jlksQDd0YqMe3Fq6/1Kx4L8q2Rb+4LxGkrtkRNo7+NOsQVrnFCCKKbs2WEMuPNh1SC0Rlwlyh6h9NRS6gCkjpb1vxyuYyBF3wLY8b0l3q11; 25:5Wp7382l7yBlFQc1UhUa9rt0ZyQZ/uj7YMDVsRcyyA4mq5IMEabmOVh3xpK8xdrkcHLFmmLMphf4yFoLoeNhAYqdtNpDNzdWFoNj3UwPdK6YE5zl9czWhs3zjR9eE75CHMM+irEtWWDsN4ezNLCDDVw6z3j1A7KagQOnwgu74IGzyn+To+Ll7NaVS5sCTndQGxN3arGfsfGPL2epDIFsjO5AeCmx69+NRtrCPRQ9ZMoxzHZ21Dz8jd4GYCGJtOYRwVJvDNcue1xr2qyfmmXDccTcD8vYRSjVvCRnom+4awQqeLbaZf7AoDfIFfpLPfeeDHZqkas8yCnlEd5Or4TuVQ==; 31:YtEUKKXdHBI4sCF2dtxfnrIMxnq0yfMxu99M1+FVR1POThLHZnpTzDm6P3rgxREBEwty1nxJ3jY4Z23dDtHuuG9zIAa+ISln/5RUG91aX2OW5EAZlht975CbDZRZbwuwyDJ4MNfBx6az1McxHMiwE9oQAi9B8adjxtOC06v6v3Q7RaFOrfBWj4V+iSP+EEikBTGhYLOl09HFFwuJvh895ukJzVhW0yrlXMKT/4tKDI0= X-MS-TrafficTypeDiagnostic: AM5PR0801MB1987: X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1987; 20:FLIWCX+7v0FJ45H8xkUP7k9LahAlG1RPPIQGvoQz4QfEAhObdW23XJCtavLEG6QnmzOfKaRnpyJJFh77qGasdwRpYSrK67tWiz/tZHBgbxkGbOTVJdD/PkEd81+IvTeUOaNg2MaA5a42eMtQQ3Ec0BqtrpK1yVtfX7MaxqtHC79geFc6rqjoXfHHQru7clLFGl44ehOn++5BVAIVFvInEBoAw6wLx9Ni0n22ao4hdv2/c3OMYywwv1c1h4F7Lcb8Z7alvQpUJWb7nndxQ7tQsiaQBPFqLifYv8ier/MPBO6vG/fik3G7qyLZIROLhiZCxFVn6Lk2ygkXbTFo2TJXoRO7ORn2O/VxW/Lc6eJ1mtpEUuJQLKnaXbmoVCunW5o7tjjCa107ORH/78YI7Ria4agkBssbhhB8aMpPI9JqqyY=; 4:vUPLZfKpGJuw5G91iZlF+nAjMIAYxyKTf+Mdq1q0rf02JUVkXXSrC0Qy/IAqES+WdTS4egY6VKNV7FQ/IZqLPDViuaiiy6S8gwry7Qxz9KKFJoTv2x5ZkEkk2KwN2drZBTRLN3OhMG3VCLBt0C14ZssQpSoUzdCz3SbJdi7kMtS+CoIwuUlBvqqa+thtTqdSwflEQCPDkGQkkdJQXhRDvOoDvR4Mo3uLzfneVu+XaeN0AbFj7ukTRko6txzBw/vz07UpbcqsOKPPYGB21F7rHA== X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: <AM5PR0801MB19871A7A8EB0D0C068E37BDCF85F0@AM5PR0801MB1987.eurprd08.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3231020)(100000703101)(100105400095)(3002001)(6041248)(20161123555025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(20161123558100)(6072148)(201708071742011)(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-Forefront-PRVS: 0478C23FE0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(376002)(346002)(189002)(199003)(6666003)(16526018)(53936002)(107886003)(48376002)(86362001)(6916009)(2950100002)(3846002)(6116002)(101416001)(50986999)(76176999)(106356001)(69596002)(5660300001)(25786009)(105586002)(316002)(53416004)(2351001)(16586007)(2361001)(33646002)(4326008)(5003940100001)(478600001)(66066001)(36756003)(50226002)(6512007)(47776003)(2906002)(8936002)(6506006)(97736004)(6486002)(68736007)(305945005)(50466002)(81166006)(81156014)(8676002)(189998001)(7736002); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5PR0801MB1987; H:xantnef-ws.sw.ru; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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:ak2w828rPlzEjgosdjkp5diII0FaNrHWwLhYcQu?= =?us-ascii?Q?UQ1Wtfrw9rsPC++FHJoznR0yT3N8Kf5+QsCnxmYYt3CMwbQKsfK+Qhmw01x+?= =?us-ascii?Q?xKX5ePxRWd+enfkm1yq9jzwAGEOOAPrMOjz2jy6yQ4v40MHX1NIqKlJwuZZZ?= =?us-ascii?Q?UAtSmKzwCTXIDJeKPwG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RB5AVYVi0VL7WG1PUbSiUsqg3so SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1987; 20:+iWeQgtgO2AYhUZSpdgzHZ7VwPCgYUGfQYH5pQAagnSx/Mp4/H4XVY2zJKpgBJWJlfjYO+Lp/75fvYey2CqkVuWrBanRqULR0x1RcJwMyhKx8YOeW1w7BVyO6LJmKa5D/D2iYwA4G58/sFDzGrYIiz7ZgBnnxOH+pKhoZP613u4= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2017 15:44:36.3369 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5870df33-255d-444b-cf1a-08d5213f74f4 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB1987 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.107.4.123 Subject: [Qemu-devel] [PATCH v5 02/15] blkverify: set supported write/zero flags X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: kwolf@redhat.com, Anton Nefedov <anton.nefedov@virtuozzo.com>, 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" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
On Wed 01 Nov 2017 04:43:55 PM CET, Anton Nefedov wrote: > Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Berto
diff --git a/block/blkverify.c b/block/blkverify.c index 06369f9..9ba65d0 100644 --- a/block/blkverify.c +++ b/block/blkverify.c @@ -140,6 +140,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);
Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com> --- block/blkverify.c | 9 +++++++++ 1 file changed, 9 insertions(+)