From nobody Wed Nov 19 00:12:43 2025 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=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass(p=quarantine dis=none) header.from=virtuozzo.com ARC-Seal: i=2; a=rsa-sha256; t=1613494994; cv=pass; d=zohomail.com; s=zohoarc; b=nWu8BocxmgFY5mTc8uUbVnB6r0wnOZWlv29/wUhbcQ66Em4X+s4h+k3+xDuUZPGax8PBXnVjNgAnUDbCEaAEzlfoXYOUB1d/F3Q9v3LMRBblyv5SKvKeerVTcOoMKeBwjUOT7HK3ija4zZr1LBfPZjPHgLINDNp/SrL8Ww7czT8= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1613494994; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=n4UEnUbYTFoBKaZc+b+I+KyHCL+5hsseuOD2oqDnG7U=; b=chr94dcTRXvMTYP4NHw5F1K1xcq022wHlFbMe5CwwS/GaXmKCtFBrNk2zodGotXVsbVHnGCui0chOGMzdw2gVdaAe1ufGKKfKY5nvx7NVy7PJdJRuBs8vxGCu3C+QS+b76jacfQZMIgmpzwpXA6iB+lM+W3zoeSWgcW9Fjw5270= 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=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass header.from= (p=quarantine dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1613494992895124.50934039397589; Tue, 16 Feb 2021 09:03:12 -0800 (PST) Received: from localhost ([::1]:59490 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lC3kl-0008Bb-JU for importer@patchew.org; Tue, 16 Feb 2021 12:03:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lC3UK-0006vk-UA; Tue, 16 Feb 2021 11:46:12 -0500 Received: from mail-eopbgr60108.outbound.protection.outlook.com ([40.107.6.108]:14830 helo=EUR04-DB3-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 1lC3U8-000776-Mu; Tue, 16 Feb 2021 11:46:12 -0500 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) by AS8PR08MB6359.eurprd08.prod.outlook.com (2603:10a6:20b:31a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.25; Tue, 16 Feb 2021 16:45:42 +0000 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::f1f0:6610:11f5:5e4a]) by AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::f1f0:6610:11f5:5e4a%9]) with mapi id 15.20.3846.043; Tue, 16 Feb 2021 16:45:42 +0000 Received: from kvm.sw.ru (185.215.60.244) by AM3PR05CA0149.eurprd05.prod.outlook.com (2603:10a6:207:3::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.25 via Frontend Transport; Tue, 16 Feb 2021 16:45:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hzZr+rv0wEdiNFeIJylESztAC5oaH5H/SLzn+cuYEUkBNbSDsVwu/L/AgSJ/Z+c0lBUY/zXhzJx3n+bVadDraV6GlijGhQarNWLeNU5dWBRcgRqdsn6WolrzCXjWcNtHE1nAo74kpXTfOc6hobyFuRqi0M9AiS9/avijALh7c0b/mmx9McWqIIfeNgQ7Xhx63rZ895XqQMdd1sosX1DSTfTwfb6Ed0G0merGdFsCjZqu3JcKd20AHj53HEHPBrYcF0OxfLLWPNFYX0S9YFQsNg/7cymbehVBQpaSgmLP3PZud/Zb9/m/yHRBJDG9SMp8NyNrsFMCoKG2e1bf2aAlEQ== 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-SenderADCheck; bh=n4UEnUbYTFoBKaZc+b+I+KyHCL+5hsseuOD2oqDnG7U=; b=EJbqfWjDG+3y84IQxMnCaGOlhx3f0UD5cCui9R/JqeORVIpHQ0Q9Uu/8Et+yeOvFhttfUajoCPbenCD1I5lRxx3spTA6hHFzbbJG7ksKz61F9x5w2WOgVOZDuijLaMLgonTlvVzyiDE2ScEtKewttPmsCZrRm+g0R88/9XgQ+qAMoUIy75PijpP8GE74aJmior2G3Pp0eoqWNHAhOnG3sfk/VuJOF1kS2hnctA9UwrzWXnmCXW/HMgucl+16U75IhbzldXZNVTyvSlCBDAGgUWMC7ag3GW5tnvt3YypuX/wYPEUaaxsTCdlf33DvHLHzgsf/gaeuILlFVM9iuErk3w== 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=n4UEnUbYTFoBKaZc+b+I+KyHCL+5hsseuOD2oqDnG7U=; b=YTxvq1Ib+0+4jVsbVmPAhu//lwLko89cFXZwCyNMAw+StIsQeKIiRWgtj3PKuVMpsBFUwmzJ3sKReEg2b9nKnYQGxWqTDICv1P9AeoekTG4/q+BZtRluZLYCBhZpAAewRiupDTpSZNkJpN8Bu7hGI9dLpnk3urahXsBZGqHtzq0= Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=virtuozzo.com; From: Vladimir Sementsov-Ogievskiy To: qemu-block@nongnu.org Cc: qemu-devel@nongnu.org, den@openvz.org, stefanha@redhat.com, mreitz@redhat.com, kwolf@redhat.com, jsnow@redhat.com, vsementsov@virtuozzo.com, eblake@redhat.com Subject: [PATCH 2/5] parallels.txt: fix bitmap L1 table description Date: Tue, 16 Feb 2021 19:45:24 +0300 Message-Id: <20210216164527.37745-3-vsementsov@virtuozzo.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210216164527.37745-1-vsementsov@virtuozzo.com> References: <20210216164527.37745-1-vsementsov@virtuozzo.com> Content-Transfer-Encoding: quoted-printable X-Originating-IP: [185.215.60.244] X-ClientProxiedBy: AM3PR05CA0149.eurprd05.prod.outlook.com (2603:10a6:207:3::27) To AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f0a6780f-dc9f-4bce-9e5a-08d8d29a4c30 X-MS-TrafficTypeDiagnostic: AS8PR08MB6359: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5516; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: P1rJ4Y8o6AL7kmw5eX0Wuj5dsy1aMWyuNmps5znPVih0rOO4JCtfY84eO05Q10Jbg7ZmP8qkwKLviyiV3x9LPbpJw3IYSIyUdBFrC8A5JExVtRm8upqAtgY9KyRaa0mex1o2ARgGzHtW35rdHy2MVr4CpwWaAUOEPRXFk/LZSarMWjVN1bK9mDad2+PAOpaAoB/vB6agBJT+KXWGGefbpW9yDHQocRvK+UmEsCawSUNOoVcooRh69wgAnNwrkb0x9NR1xGSVV68EcUOXjTkqA3l7Bk/EO7Pbp2cMFyojQLI+WC+wcRE4WALuEWv1yGSqhF1Km/kp/ntMEWZx99WfgdbYtXU85LAsDHtzI0FUZQ2X3ArTDaZe8k+eIZerno6/cuXCqOB6B96kQSklwIcGUk/BWzC58hxcNkCWZtV7cms0wTrrPyG5e0nmJ5y/Z9r2EU6twoWWddcU80+For2n8XjKwPrfKNipdfg3mTgpd+SYHZuuwxo8w5i9XROkSNteRlvZuL4IsFDD92KBopxcKQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR08MB5494.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(366004)(136003)(346002)(39850400004)(396003)(8936002)(956004)(316002)(83380400001)(36756003)(26005)(8676002)(2616005)(5660300002)(1076003)(66946007)(66556008)(86362001)(52116002)(6512007)(186003)(2906002)(6486002)(6506007)(4326008)(16526019)(66476007)(6666004)(6916009)(478600001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?h08EGRaffNpXnW3veb3MjnBNTdPds39vBzcLa6kCQiWYOk7asleQ01p5y9y9?= =?us-ascii?Q?hPgXTrlX6qZPuCQUJJWK4g0FtJLGAF6o8mN4SLHLmBV6t1UEpcXLkzxMmmvM?= =?us-ascii?Q?Rf06AEsE0DmnDMoNJNCZUsKicdUUULqkJcjyOki4xsbcVuRb0EiD13Rc/4Se?= =?us-ascii?Q?nBjMJkHvx1nubXwKXAGzhkeznfrkaT+ST3vkmjc4LkmH11LcgQwsneBvsuJJ?= =?us-ascii?Q?16+NuK1WgCGmd37sosS0Ls0VMu7zf5LRt2sYDk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VXBOtzr/weTxNcLPrZmyrocxhztKwtgrf3TCUr5ERTE8GJvR?= =?us-ascii?Q?R1Ct7OeNjcUbkEfWfYlKJhWOtXzu0r2jRvn7wYoSK5S9+Gum4CJftZwfY8dG?= =?us-ascii?Q?NdOQpCHv0S3EU0p5on0oMITYIxW96x9z3re/trBHDEWt8dBlYrNj/3XiRVPD?= =?us-ascii?Q?uoIowLT540u4Z7N8yM6WQhbm?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: f0a6780f-dc9f-4bce-9e5a-08d8d29a4c30 X-MS-Exchange-CrossTenant-AuthSource: AM7PR08MB5494.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Feb 2021 16:45:41.9967 (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: wfLahewbp1wzAiTrUJZeCyulKL6qx3Mo9jt7qS4tzQiKzyVMt+OGGjzeZlynI3uiZNo6TxBTA4HOlLRqcr7PGLwuyAUDAUjXQu1p/kP1RIo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6359 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=40.107.6.108; envelope-from=vsementsov@virtuozzo.com; helo=EUR04-DB3-obe.outbound.protection.outlook.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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.23 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" X-ZohoMail-DKIM: pass (identity @virtuozzo.com) Content-Type: text/plain; charset="utf-8" Actually L1 table entry offset is in 512 bytes sectors. Fix the spec. Signed-off-by: Vladimir Sementsov-Ogievskiy --- docs/interop/parallels.txt | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/docs/interop/parallels.txt b/docs/interop/parallels.txt index f15bf35bd1..ebbdd1b25b 100644 --- a/docs/interop/parallels.txt +++ b/docs/interop/parallels.txt @@ -209,15 +209,14 @@ of its data area are: The number of entries in the L1 table of the bitmap. =20 variable: l1_table (8 * l1_size bytes) - L1 offset table (in bytes) =20 A dirty bitmap is stored using a one-level structure for the mapping to ho= st -clusters - an L1 table. +clusters - an L1 table. Each L1 table entry is a 64bit integer described +below: =20 -Given an offset in bytes into the bitmap data, the offset in bytes into the -image file can be obtained as follows: +Given an offset in bytes into the bitmap data, corresponding L1 entry is =20 - offset =3D l1_table[offset / cluster_size] + (offset % cluster_size) + l1_table[offset / cluster_size] =20 If an L1 table entry is 0, the corresponding cluster of the bitmap is assu= med to be zero. @@ -225,4 +224,8 @@ to be zero. If an L1 table entry is 1, the corresponding cluster of the bitmap is assu= med to have all bits set. =20 -If an L1 table entry is not 0 or 1, it allocates a cluster from the data a= rea. +If an L1 table entry is not 0 or 1, it contains corresponding cluster offs= et +(in 512b sectors). Given an offset in bytes into the bitmap data the offse= t in +bytes into the image file can be obtained as follows: + + offset =3D l1_table[offset / cluster_size] * 512 + (offset % cluster_s= ize) --=20 2.29.2