From nobody Wed Nov 27 17:45:19 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=1697722020; cv=pass; d=zohomail.com; s=zohoarc; b=nH3rjzHthmtFaKPLZ2jhP4STxvK0+B9NNDaoWpXoYhPMVr7jo4W58Is9jLlfIlbHBzZIo8S1BVaUYYQlHyKiz3+HWrj0vPmhz2ovVmv5l9DJS7LLj8KfisTQVRqQhD8ybC7/l2ZU/FfyoOx5uw7ItHuI3Tu3Q6aUceKme4Zh4FU= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697722020; 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=QcgepgWnCdHnhMgOTwm0Ko6SgRB62LnSc/g+1ZQ7t1Y=; b=BpGffS2LvjyeGdvhfnAVoi2rcB87wqVY3/pFANiG2YBLOtVNruOixQbGkfW0nOOIgJHpMyM2/pXhKIk1NoZsXpuoNsnuasHp6m9aRMjFznrOtJqewmg1cMkY6AB+sXLPSXARdP0Zt9AUB5mmdruJeYtn6bpmn9Qj0bhB5Pk+8Yc= 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 1697722020637904.7824561181612; Thu, 19 Oct 2023 06:27:00 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtScV-0005ll-6H; Thu, 19 Oct 2023 08:59:23 -0400 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 1qtScR-0005k8-OA; Thu, 19 Oct 2023 08:59:19 -0400 Received: from mail-vi1eur04on0703.outbound.protection.outlook.com ([2a01:111:f400:fe0e::703] helo=EUR04-VI1-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 1qtScQ-0002f3-2F; Thu, 19 Oct 2023 08:59:19 -0400 Received: from HE1PR0801MB1931.eurprd08.prod.outlook.com (2603:10a6:3:4b::17) by DBBPR08MB10554.eurprd08.prod.outlook.com (2603:10a6:10:52d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.23; Thu, 19 Oct 2023 12:59:09 +0000 Received: from HE1PR0801MB1931.eurprd08.prod.outlook.com ([fe80::cefd:987d:e77f:71e0]) by HE1PR0801MB1931.eurprd08.prod.outlook.com ([fe80::cefd:987d:e77f:71e0%11]) with mapi id 15.20.6907.022; Thu, 19 Oct 2023 12:59:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UlpRPM2vpwnI1v5jvKkC+uhgRZjt/BenYlbAy9SZX47H8pnblmnXVLEDqVKT3xnh5lfkPpUL6M8OGdENHetgoJwEc2m1oyQyXcd2KXBo8t9khPYdpAva9HK2pIqD6F8VNEpxbcuwAxqfppXLXL5cZxWB8WDWk/xr4UdmJLnT/U6XexfbjkLmw9j+d19DDx/PJq4ls/9OhvmZivh7l3NCmBNOfiVrZCr3nhWECQTujaQopNEZwDxFw4XWG+BSCj258vMK6hasinwCkV2Ta5JA5VQeq4YWm8mrztNvJAYoUAhe9+S5vxjzS+6mDTewisetL8+ljaY0UkTAU/iCe7qhIw== 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=QcgepgWnCdHnhMgOTwm0Ko6SgRB62LnSc/g+1ZQ7t1Y=; b=FIXkGq170FUJ/D4CF3BnbeN1ihp7RiRHRUJx/WlmsmrFFC8EzWv8Pd4BtTiXM9SIL4N5KZxDGycojDMFX9GhOLyuM7D5dXhdKdhXGD/HRDpbaqSb8KC024i3/zDguPe8qL2yZ9711yBCg0ebLRHbi0fyAxsLqU98kRIdrs4DOpZhzNNIErRdNCdhDi8Tzt1WZP/dqTOvGC1B7uFIaHXIlpOJqlbT5vB+T5V5lI/z05N6kQHM7Tm09MZ0kfg6pAAU7A6ZxuVI+5+VWuKF/E7d8BJerIHE7rzMobZ60sCUziRTnV6S3bjqRfEMTxAjZk17vRRnjaZNbk1ExaGR/cHZeQ== 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=QcgepgWnCdHnhMgOTwm0Ko6SgRB62LnSc/g+1ZQ7t1Y=; b=VjE4qoVksIdQGEzkwFtVXmvgvfnXab7nlgFx2TBwoNBNEwEJKuaRINy2xHZw+/4B6orcr44zA350NVlDR4y9YRmLiah+AZlH16NjDZuwLwAEm5nPc+exeFe4/dkzkGe/MQNyfomwXcqWJqVx1oW56pqT0CAoFrnmfOPwkMi6h7FKgFPys2kRVyQ0QCqNS85tHNKyBwx/7Nlw/GJ/iiadSrzfPhUODjut1hgZcz65MqAoc4tFYL2VSqBJcpdJ5mrV+BVg8sG+I4Sac2kgyq8gxZronc1ALB77bxbcbaLtaoGCD4i6kWSnm500OF4rPggWq6b+uq/gE02avoK7dosPLw== 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 v2 07/20] parallels: Add a note about used bitmap in parallels_check_duplicate() Date: Thu, 19 Oct 2023 14:58:41 +0200 Message-Id: <20231019125854.390385-8-alexander.ivanov@virtuozzo.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231019125854.390385-1-alexander.ivanov@virtuozzo.com> References: <20231019125854.390385-1-alexander.ivanov@virtuozzo.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: VI1P189CA0026.EURP189.PROD.OUTLOOK.COM (2603:10a6:802:2a::39) To HE1PR0801MB1931.eurprd08.prod.outlook.com (2603:10a6:3:4b::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HE1PR0801MB1931:EE_|DBBPR08MB10554:EE_ X-MS-Office365-Filtering-Correlation-Id: 7d1199d8-c45c-4d0d-03a5-08dbd0a32f3f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WbXPB/xx1ZPi5FxxKYZuPTwXOVJMxivTXE8bNEe0LQQALir+zIUIWikkE36h2NF1NWo44ILM6nLV96Ht3QUL5uj5ApUuZ3ojmesCDGLiqdH9WkchnrVXX9P0KsmSzVgEdF3sx9Yj6O3AxXs+5pAGB4TXcu0zxBteUwx/R/2MpG/2HS6YD8eTTZ6J1MtbeaySyJuEqy0kcrzdB/Gs9hqOLowS+H2tcusucIWFFKgsnfGQrPj/P6CJBQnizE8lAYC751rdPGLMMCGpajSouKJRarKdbj/zL3aBebLBHCj1jbPnEi7G8MHXcAT+42dhZTytIge7O5LJUtLrSPvED7VYLAGS5NpktQuD9iNfNzdq7GuG61ZED9+ZSd590pYWhWgC8lH6TwaxBvjdR+yKxEzcAp1BHfHUXSuO8kLGbickslhcns92pDmLeUmzxFaXpzLSJI5L9Bw9xzp12i2VG5Wx3Sv0tCNfrSpO/70ZUav9LJkj0eFog0+Fwy+Nhmbwo3RfozrAB9RxaD5Hd1+gYz1DEuwzhCS63UrE7OfGLUAlB/QvOkUaWeGiUjXcW9UCLkxhH/tov49QyRU7KrK0zy5xGDcPqX/gasJDn4ktDdnpwpkgc1kZsir/ION0VedTjYeW X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0801MB1931.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366004)(136003)(396003)(376002)(346002)(39850400004)(230922051799003)(186009)(64100799003)(1800799009)(451199024)(26005)(38350700005)(38100700002)(5660300002)(83380400001)(44832011)(41300700001)(86362001)(8676002)(4326008)(66946007)(8936002)(316002)(1076003)(6916009)(66476007)(66556008)(6486002)(6666004)(6506007)(478600001)(52116002)(2906002)(2616005)(6512007)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?VYUVo4s8GJYEorLj1cpRqksBdBwz3NaQYUcAAqLklznj5VXuXdSR+ybKJPzH?= =?us-ascii?Q?JEN98U4zfaJzrC4RnZWMiYiPuJGPS98d55XUpFIaO4DoNk94KYCSyKdALvbW?= =?us-asc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RCsZnFMyZr9PGBh8A9vHEuVZepn?= =?us-ascii?Q?bGVutxwthTiBC6IKjZeAI3T4BFoOcZb2/PkUhiufQOKtpJ6wUXqwWEHrbaIh?= =?us-ascii?Q?4Xjg+qkmpma08jGhSD7Q+PgiCbU3dl31dWrRe+f1QxBT3KfvwF6MpkwCQhEt?= =?us-ascii?Q?3i89FufwNFbgiXb3acW+Q6xcpkr6c+VIkR53nXfNhT2S0509LNPDgU4gmPMy?= =?us-ascii?Q?aHiBmGHTZeDOWvE/6dcgGE1Xf451OCM9U0RwolsNTRdGhOh4j/rCY+DgMj1t?= =?us-ascii?Q?EsR51rBP9ul7xiolb+uN1j45np/PpMAnqhgOmQ/Yxddx4m/CPH76qfv/ab+v?= =?us-ascii?Q?hJN2eViJzQDWp9ZUK4ufoChKbPpiUMcV3OLIjCEXBnnp6s5qZPFlIiEP+1c3?= =?us-ascii?Q?yNUnV3Snoxy0W6sot5OzXbnVkpedEm4+bxMhRKTzmFxmStfGNNZ7F6M4WG3R?= =?us-ascii?Q?OAIMi+hXiOocQuUaX4NyAe8lEGGgmDDcsri5SG7YGJ3WfnMx7tVXSfw00nPS?= =?us-ascii?Q?kN+3E06EsGveqUyERnQty9ong1B6paqwUIhtQI9T790d5WT2Nacqmh2/2tWB?= =?us-ascii?Q?LA7IXsV5t/QisTufFa5BNV+xHRjT51jH7YafH1syj92mdU0FET2YlEGtGsW/?= =?us-ascii?Q?+uUnWKafd9JLEPdRkRfQ0mA=3D?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7d1199d8-c45c-4d0d-03a5-08dbd0a32f3f X-MS-Exchange-CrossTenant-AuthSource: HE1PR0801MB1931.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2023 12:59:09.6101 (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: TmgUC89kX1/vKDxlcM50I9bQjKzmkp1dEAghSoVIKYaC/5C0MI/Amy2SkXcojq2BmCZTQm//U/7/pGSfeXsuSFAWWAB4AoMUSAOTWUCQgAE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB10554 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:fe0e::703; envelope-from=alexander.ivanov@virtuozzo.com; helo=EUR04-VI1-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 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: 1697722021903100001 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 --- block/parallels.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/block/parallels.c b/block/parallels.c index dad2bf67cf..dd8ec925f3 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.34.1