From nobody Wed Nov 27 00:26:09 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=virtuozzo.com); dmarc=pass(p=quarantine dis=none) header.from=virtuozzo.com ARC-Seal: i=2; a=rsa-sha256; t=1703758537; cv=pass; d=zohomail.com; s=zohoarc; b=CB6BAro4caGnirEunTmeiaByG71O9JHmHrNza9QMsxoSF2pzvwKpxsD8KJeoya52mdZd10d1aDj/WnMrOyeH7xnVjg3Ddasu7oTnRl5LX6wK46OTVOy7TqNuLlYBQMirxA/tAziwvTLvi0Ppd+bMcmJwzE5WTxnZdom/Yc/bXlA= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1703758537; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=6MTFvJZaRYxijrcCiOR6/WdsYJiwbnhEJy5neS3DPRI=; b=QHY+ie2AYiMwivcMx1GbmoaA9RQIZhx/apPLn71NQ1ykrZfjcqfzjk+4XSi3X3gRyYYRFwlPZN7cCMwzHGRPzLSwa1iQKPdz9QN7vGDZXabLrCh+hjUOYnoUIH6xMnxVW3U3oQEM0X47kI+TDF2P86ds+PSQJc3st+EkzMISQ8Q= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=virtuozzo.com); dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 170375853752157.90114808648616; Thu, 28 Dec 2023 02:15:37 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rInOD-0005QQ-4B; Thu, 28 Dec 2023 05:13:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rInNs-0005KL-UW; Thu, 28 Dec 2023 05:13:00 -0500 Received: from mail-he1eur04on0713.outbound.protection.outlook.com ([2a01:111:f400:fe0d::713] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rInNq-0000at-Lw; Thu, 28 Dec 2023 05:13:00 -0500 Received: from VI0PR08MB10743.eurprd08.prod.outlook.com (2603:10a6:800:205::19) by PA4PR08MB7459.eurprd08.prod.outlook.com (2603:10a6:102:2a6::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.19; Thu, 28 Dec 2023 10:12:44 +0000 Received: from VI0PR08MB10743.eurprd08.prod.outlook.com ([fe80::60f7:3267:9f9d:cdc0]) by VI0PR08MB10743.eurprd08.prod.outlook.com ([fe80::60f7:3267:9f9d:cdc0%5]) with mapi id 15.20.7135.019; Thu, 28 Dec 2023 10:12:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kt5RZleJ7cVaWrR2ggCRwo3QWxjuUTzdD1OIQkmw2Hyy1hsu942bHcX98XFIwWPD6hzaxS37NTunD4mxwBEurrxHWgvMwStPHpUvRQ9fMB/lzb78mpUUOOZvBctgCf2cCnnlGfiQ3wGz8/XlKf57ypxUKzgZpjWedVvYbuf/50+wOW8GUImm/u3tKpG5azfBFoPh6twn95Fv9kNhmOrLr+sBIKUrYLhuZAEUPIoWEUx4F3jiJ4Pqf3PvVA7XVW6XRZVNJAzEyBE0974eFNES3tToZcPwHcO8wVdJOTMpdheRanvs06xB0Z0Ipuke3GnCYAqIKcBMs7NWfg9nA7L41Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6MTFvJZaRYxijrcCiOR6/WdsYJiwbnhEJy5neS3DPRI=; b=EAY1fjkvp20Q7MlX5Fqfir/Yp89ptsSiMUoWIlU+ihDIQCfGYSHsBM2cNBQpODLBkqh7d+vnHBitsIU9XXtm2VkNM2djj+I2xpP9Fao2IP6WDgPiZJqxF0CWAxgVsSchs6oIrfKQbRML7Zd2JM7dzGp1/V3pwkt55COLTo7cKcEfQscwm3fc1GsRVCLr4/GYdDMGrCa+UKVjwYbfAMJuKTvJ4dFczMRfWTRbk2bZ7v05bKX5KV+7fYI7UE+iCN/YNBvzqVgH08wogtkbJe8E12vM1jAYHXQOjSh+XFrd0VTqrtKgcaSnrOhGPfNrV0Cib/wMVJZZilRrn6hjPR6p9g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6MTFvJZaRYxijrcCiOR6/WdsYJiwbnhEJy5neS3DPRI=; b=DQYf1ArQy/o+WsJjErpr1DcgpJ839wJZtvg7stczEnzjE7UwzMykajYde+kCyRVNKDEurFbF+m8w6PLxnVA3jxh/yM5U9zsbOrSoK6zeQJGQWGqAvMTSjEeuAwi1M7roc1m+oi1aAz4TFZL9FsW8Z/N3+OOs4c+KcgkD6i9ti+AvMwVbVS7DlCsAXeDlz+phfWsudTa5MYNtETQhYybR35sryt6Fd+uUIbHqarHt90nGbcY52RYCvOQ+hZwkc9FFMlJIWRLHR2KW5HuI1FJkpaSIwNzRb6J9J303ux3JOzDIdhFEc0W0+W9Cd2GAvKA25mVRMLp/kVc8jpaIB+eJ/g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=virtuozzo.com; From: Alexander Ivanov To: qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, den@virtuozzo.com, stefanha@redhat.com, vsementsov@yandex-team.ru, kwolf@redhat.com, hreitz@redhat.com Subject: [PATCH v4 09/21] parallels: Add a note about used bitmap in parallels_check_duplicate() Date: Thu, 28 Dec 2023 11:12:20 +0100 Message-Id: <20231228101232.372142-10-alexander.ivanov@virtuozzo.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231228101232.372142-1-alexander.ivanov@virtuozzo.com> References: <20231228101232.372142-1-alexander.ivanov@virtuozzo.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: FR4P281CA0044.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:c7::8) To VI0PR08MB10743.eurprd08.prod.outlook.com (2603:10a6:800:205::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI0PR08MB10743:EE_|PA4PR08MB7459:EE_ X-MS-Office365-Filtering-Correlation-Id: 2d51990b-4af3-4aa7-5f6e-08dc078d88d0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cAqDsTQ8tA/A8IDHAgxXORuagU8UxfB3M+apirzX0erBTNALqYUYibozyE8gut3z+644fDequ5AKi0AtQPeS2rCzJBEZytvh9d51zJsjj403Tzymd4kV0+nr0jx32jX0KtUa8sWiR1r8OZzBtQrIo7cAxIyyPPsjlAjbEgpA+uRRXYLzgQiZxqPH199B156jilrHl9FfpGSALydHa7WWyPLGvst9ziRrOwev0YBVffL4+ti/UA2K/+Hu0csQMT57zC5yTH1Ud3iIUwnCX/7yeKYY4d660x/9xX5LaPEQvOoOvoAjT1rTFBikjLX1UTZvhLyGZ+x5BjdQYJkxck3xn9cJdgF3p7Hz3jkj2WRD46v+p4upQeWu+3o3xKoPFw5Qv5/Zg7spTv0LUWaklOsJGsB/JMxSLcTZm1EUCqd5IPmvOe2LqB7r7kIA06a2X8w0YiZxgmgQVnhvTqaSw6S31CBDJbQE6SpBVzs0sQtGdXqpKJMqWTLP9QweOsBmYXgmvAMWgjhfFT8kUACJNX4rEmMfkiQwbInb43XNxlcHDTQdNWWo54W+fIt95O/x+aD4Gum05atADB0onLv8rI7PwwsnFvLSOBaPbdSuBATIABDFKN2o5vx5uEbpHQyQ6lC7 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI0PR08MB10743.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376002)(136003)(396003)(346002)(39850400004)(366004)(230922051799003)(451199024)(1800799012)(186009)(64100799003)(2616005)(26005)(1076003)(6666004)(6512007)(52116002)(6506007)(83380400001)(6916009)(478600001)(4326008)(8936002)(8676002)(5660300002)(44832011)(6486002)(66556008)(66476007)(66946007)(316002)(38100700002)(86362001)(41300700001)(38350700005)(36756003)(2906002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?W5XFRimpBB1YLURs9Xm0B84K0Y37eczIRGJrDkzvCph1/Xq1wSXRp+XFdTRh?= =?us-ascii?Q?CT7DCuMHTL6Vtx7SZQm1U8eFgofoYSxwkjOTH0D6aQJcsxdJWhT1+2/iE/o8?= =?us-ascii?Q?3wmKkimyhbzA9giqja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8hLsYEChC?= =?us-ascii?Q?0EfCr0MXqK5sOYhVAc1e4d0AUrn6vTIpDyi85v9qjS0MmLeyb2Mu76b0nG2I?= =?us-ascii?Q?IrF0QaRYmrSsI8hhTvkQb60RYyZMBafopFaLOuwL3UKcbQGpEnT6H+r/8PHI?= =?us-ascii?Q?iOXno9lvIhe8l/MbegUEfzHBF/H15MCMuIg6YMvbZGh1sUfPzO5doebXc2L6?= =?us-ascii?Q?w+vj8mudWA89uTGeKcpyZN0tnfWEc1w7kxcOvquqXBMLhZnIQ4mcQpa9/d3e?= =?us-ascii?Q?xBLgQEzDXv1vu2kFQA/GNmlftsPNY3SLGwIED+eXWh4/K9qcemNUmmASULcG?= =?us-ascii?Q?qhnAxeDA0e92rxmedyWKF9BtEtaesAFDLnuGfXhkcQv1I7oprFTK+jygL6xw?= =?us-ascii?Q?1/UdknDyUWWnmkT/BUh3ZJErd8v4fL5kkq7CcU2B+GeJZt54IlIEILjodKig?= =?us-ascii?Q?YH4Vc/DIBq49+JmXFHBbj1w03rMflqdzernKHOBLoH+QzqR/UuhhxJvc0NL4?= =?us-ascii?Q?IdDOSJBdT4DEWbbAZ9QkxvwHITiT4K6FzGynyLBXllarZVL0U/aCDWg2vUSQ?= =?us-ascii?Q?FCkJ3cOLH9hDwIXM/x196Ur7IA3040jqQA88vmDbPMuMpOPzGjxGPAeTbzDv?= =?us-ascii?Q?FxvDdgnYBaiLcY+iqdZYZ8I=3D?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2d51990b-4af3-4aa7-5f6e-08dc078d88d0 X-MS-Exchange-CrossTenant-AuthSource: VI0PR08MB10743.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Dec 2023 10:12:44.8509 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: b61VTH+xZBeRI6w8i9KP7nrJ/f0MoY2xzhvZ0hooyMIja5ADVQiSQOPVZr5MPxwD/UkDQmqCQqef7em+iFAYG3Vuu8TDdntYjzqBM1Yo/pQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB7459 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a01:111:f400:fe0d::713; envelope-from=alexander.ivanov@virtuozzo.com; helo=EUR04-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @virtuozzo.com) X-ZM-MESSAGEID: 1703758538794100008 Content-Type: text/plain; charset="utf-8" In parallels_check_duplicate() We use a bitmap for duplication detection. This bitmap is not related to used_bmap field in BDRVParallelsState. Add a comment about it to avoid confusion. Signed-off-by: Alexander Ivanov Reviewed-by: Denis V. Lunev --- block/parallels.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/block/parallels.c b/block/parallels.c index 04c114f696..0ae06ec0b1 100644 --- a/block/parallels.c +++ b/block/parallels.c @@ -837,7 +837,10 @@ parallels_check_duplicate(BlockDriverState *bs, BdrvCh= eckResult *res, bool fixed =3D false; =20 /* - * Create a bitmap of used clusters. + * Create a bitmap of used clusters. Please note that this bitmap is n= ot + * related to used_bmap field in BDRVParallelsState and is created onl= y for + * local usage. + * * If a bit is set, there is a BAT entry pointing to this cluster. * Loop through the BAT entries, check bits relevant to an entry offse= t. * If bit is set, this entry is duplicated. Otherwise set the bit. --=20 2.40.1