Message ID | 1516297747-107232-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 41A01602DC for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 18 Jan 2018 17:54:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F4CD28047 for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 18 Jan 2018 17:54:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 240BC283AD; Thu, 18 Jan 2018 17:54:03 +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 B13B728047 for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 18 Jan 2018 17:54:02 +0000 (UTC) Received: from localhost ([::1]:44518 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 1ecEO1-0008UI-Qp for patchwork-qemu-devel@patchwork.kernel.org; Thu, 18 Jan 2018 12:54:01 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <anton.nefedov@virtuozzo.com>) id 1ecEJg-0004Mf-Gd for qemu-devel@nongnu.org; Thu, 18 Jan 2018 12:49:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <anton.nefedov@virtuozzo.com>) id 1ecEJc-0004Fe-EO for qemu-devel@nongnu.org; Thu, 18 Jan 2018 12:49:32 -0500 Received: from mail-am5eur03on0716.outbound.protection.outlook.com ([2a01:111:f400:fe08::716]:42208 helo=EUR03-AM5-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 1ecEJc-0004Ce-7W; Thu, 18 Jan 2018 12:49:28 -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=G4LG5MlrMqP819rLlJ1ysv6IMR6RTYB2P+hO7kJUPgY=; b=BboiCxoaCgFKQ8XPFR820RJwHOnjqATOxDzVkeyznEd2L0MA57hvmCNXgJqScpXCAlPZJuLvOc8/d/kMJv/OtpIukp3wEmo5geDD/YY9KpKy3vm2wOPwqqKBKsyB1+uOVbz+gTA4+mAp4G+J8Zrx0qJTpPu1fKls1c4wSWQdgG4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=anton.nefedov@virtuozzo.com; Received: from xantnef-ws.sw.ru (195.214.232.6) by HE1PR0801MB1995.eurprd08.prod.outlook.com (2603:10a6:3:50::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Thu, 18 Jan 2018 17:49:23 +0000 From: Anton Nefedov <anton.nefedov@virtuozzo.com> To: qemu-devel@nongnu.org Date: Thu, 18 Jan 2018 20:49:00 +0300 Message-Id: <1516297747-107232-3-git-send-email-anton.nefedov@virtuozzo.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516297747-107232-1-git-send-email-anton.nefedov@virtuozzo.com> References: <1516297747-107232-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: HE1PR05CA0132.eurprd05.prod.outlook.com (2603:10a6:7:28::19) To HE1PR0801MB1995.eurprd08.prod.outlook.com (2603:10a6:3:50::8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 681915dc-211c-4419-8e4c-08d55e9bcf64 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:HE1PR0801MB1995; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0801MB1995; 3:+ed7dEE+L729bZlg3DL2r0NDgOciLmM2AJTN61hUhUwt10NMUdEZ5MtzYCHj9k7LH/q97zivG7XHwrvh3q8/bDDjWK3fgWwBv15oloLreVkykijdJ8Jxbb8OHOtVls3SoaIdYECbU6Lkn+/mbnojY6jPziUjE8pVSF7eiMzmC3WTwOThH53eZtjoPzFPjGX3OljEkYSAt2i9zVDru4FyPHKf1l35ZP4XvBLk4fGN4AIzQCDyJ1lsJ2mGXcQ1SgZc; 25:J5Njd9d3Vf4CZdDpemF1zceZIhcwAKooot6wqEWxMfEAkQGzhR6wTMgLjiYghOtzkSyjTjH5Hs40YL3ex7X8Dmpb+Tf5TbX/546E4ZIgkYXdgHn1NrJDnfkidVvm7vR4ZWUuBr891riyrP0BBFaiuf/wVCVALYyjCSjxzZtC6aPaYdqRFnA88GGbfrGZSWVQHqzZrne+J1Wz2t5VqUztDxq55mVXSeLhlbxQdOQFyWus7qLT1XZNz0VKx3I+E1Q+H75/zOage7RKsJs77KnYE/93ib8yg5z7/8lKQW+8GNA80/+fWJuVRz/KeCGAyTADdBwMIjIvxI1MOL3xapY8yQ==; 31:TJRCuGb7FfvdPhQkwG1GhyG98ocysBTwaKPsYzLryjophJPNZ0hmY5zvgmnyk2ZC88/RGpUEU8yhcsk3D3U3/jhRgjtJYi/o9d3vGQcPfgMTTZKoVqiWL418eOlK6oxqQxvAx0jFlzn7//Yz/2yeVePbFHPbPzHPuaVbrW8cqaGFRUu4po1xq/VCCmcqmwRfeBjmCiAitSLFyQEEKvSGAAaS47/emH7ZxXRosSx+Ah8= X-MS-TrafficTypeDiagnostic: HE1PR0801MB1995: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0801MB1995; 20:qjqCGHPecbptadnwNirA87SQNvuoX4pK0Ncay5AzaxfPM655X5ywKjgVYhqoRCqCIc7dpAspDxiLcDYvLUoXv/Z4uenEag1abwYgDonOeNLUcN5bqaMVTAbpETubxCGIqc23EZvVZAc0qUtofCi2sPdNea5Q2G09nSdo3SEp4NIkewBRFn5gZZBpW6SZHCw8bLPCVLLUjzwElgo0dP9mQX1ol4FiHG33pHv9VgWnHVBRu2PThKBVfpozpYFBILtHkTrXMRDgmXhPdrLlU3NZdGjyhVhxMoDBBxTz8kKK6uCbb7RmBldyRaaK6TP1zsRV2bmkemCY4hKfNy1pPRg1NMkLIDU7P9GGPdzjbOu+33SUs2/aOYpQVq9oCbY0uUN4cn6VCietcOCoww0bSmZVbHN/HS0rrHrS4qdytgv9N2Y=; 4:mv3ukl02NE9tU7rVOdGtw2/OAQMloHDQsLis2proi3eFv4WYORdqoK/teAxA1cUf92WCsbpdBBo/5xmPIAdDdjbm/WhGm2dsBbHaNCdE8ABpVXHjcqmFGo+GSqRsmMSXIEXcxdKJAjoGzI0PuFqoNpJFkznVlRB+AoFwmYRNpaotHUNUjJ2VsCDuEZ3BFLX/Q0qf/jGAxLO828seZdWsaUKod6ktJszmuINO8ZtHbdmKmJE1uP8DhU/w4umpZhrcohiHI2d3K/scGTm3DFi3WA== X-Microsoft-Antispam-PRVS: <HE1PR0801MB19955CBB9095BCE264313C2DF8E80@HE1PR0801MB1995.eurprd08.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040495)(2401047)(8121501046)(5005006)(10201501046)(3231023)(2400065)(944501161)(3002001)(93006095)(93001095)(6041282)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(6072148)(201708071742011); SRVR:HE1PR0801MB1995; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:HE1PR0801MB1995; X-Forefront-PRVS: 05568D1FF7 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(346002)(39850400004)(376002)(396003)(39380400002)(366004)(199004)(189003)(50226002)(6512007)(16586007)(316002)(2906002)(16526018)(53936002)(2351001)(6666003)(5660300001)(66066001)(51416003)(6916009)(69596002)(7736002)(2950100002)(86362001)(2361001)(76176011)(478600001)(97736004)(107886003)(105586002)(50466002)(6116002)(47776003)(68736007)(52116002)(26005)(8676002)(6506007)(305945005)(3846002)(386003)(36756003)(81166006)(81156014)(53416004)(6486002)(8936002)(25786009)(106356001)(4326008)(48376002); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0801MB1995; 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; HE1PR0801MB1995; 23:53m++OAbeqV74YQAfWqYCXTKsNGTMPNBh56KmTN?= =?us-ascii?Q?0Z7FvZYIBBnDhyKQ5zJDFuN3xL9uh5Qn+8HiFnk/4kxUq902VU+uMeS/Mgt4?= =?us-ascii?Q?yLyPliVVjm54t84ZkOIyv9uzhA+UYYHzooU70yO600uCeRMZz4ggTYBCzOIp?= =?us-ascii?Q?a+Nxi7EMrpXu5CH2oRKf/o8sWE4GB5rWT8nMujuJKgiJbiZTNSFGSU/+gSw8?= =?us-ascii?Q?Ag1tjMSrhE767UmLUgyKMLWzHjhAjLwkNauG6bTRj99utiOV8eoASgjVMrHh?= =?us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change-Diagnostics: 1; HE1PR0801MB1995; 20:KLClUJpMFmfp+49x8SrCVv+ILo4JF23rWeK1Z6oXd3H4jqTlJLF9MNsioJy63tAgVcgoWoCCNT5SPTXeGAidPU05/wFTVhyMYtKgvGjZ47PWlrQhlmtJJNqBiEsyJguNt+O44W9aw5oMSD1a9cIvW2Cum4gcxrftAJNolvz7Bws= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2018 17:49:23.2240 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 681915dc-211c-4419-8e4c-08d55e9bcf64 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB1995 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 2a01:111:f400:fe08::716 Subject: [Qemu-devel] [PATCH v7 2/9] 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 2018-01-18 18:49, Anton Nefedov wrote: > Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com> > Reviewed-by: Alberto Garcia <berto@igalia.com> > --- > block/blkverify.c | 9 +++++++++ > 1 file changed, 9 insertions(+) Reviewed-by: Max Reitz <mreitz@redhat.com>
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);