From patchwork Tue Jan 18 12:02:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 532866 Delivered-To: patch@linaro.org Received: by 2002:ad5:544f:0:0:0:0:0 with SMTP id a15csp3627329imp; Tue, 18 Jan 2022 04:50:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPH31XuCFacj4Rhj9CONyHmj64exGVzGpQUTBifCWgZYgd/Mh+MoiqQtgGvCBgcxodC3l1 X-Received: by 2002:a25:cec8:: with SMTP id x191mr27284189ybe.745.1642510213367; Tue, 18 Jan 2022 04:50:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642510213; cv=none; d=google.com; s=arc-20160816; b=mGVcAjN70xCNPl01GreSgLpwh+efwzkdQmiggB9yWQmlqNXRCaQEavfObykPekjM5S 4faNIRCKsDsDej1VHpRWVEZPliYo9Z3FLaMpDLBlZdf54Fl2EUdNxM8nzmVinI9OG5pY 7BfICibFKFspT8X2FvWqBu3LA3daK3lf3x2/J8tW7eSZ0YXIRxYXAlSlMyP+8tZnufti EQgoJHHMOpfbvZ93uHu8F6PTnenMiKrukqE9t9HHD8DTzIxoZG9+W8tQBBJkgvdx8FvO 2NV9WE777YQ5QqIZiDsoTVOIhlG0xMWjUnD0Csr6Ag233603eZfgCe2bD7G/ncNCuzDn s3gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=from:reply-to:sender:errors-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:dkim-signature; bh=irXA5UGU6jp/uyMnLyEWDdOrhtz9iUme+ohFp2+tm1Y=; b=PeL7YovGSKSAiPmKpxUq5L0oTmOuI0/AkcbaWkwuUY3r7xZu2kcKxvhN8MU0UdCAco sbC/uc7x2S9I2fZFD/vx8R29qKjVqfcRWD334urmhmEbva7wTQ8FJoUuhMHbKnuhRtsm 90HKi26sTiRiNBT73rMPQsRlTJwHuc1kMbSoJ9HCnf8DYO3wGz8y9L1/ViRD6kV36jYK FWI8N8pnfFq9/vr9rpfbwO7zAqg56MbykGsrEoZT2huvqOtmizQCUTqQuNyQd9pZkSnl ovat2ZdNoc/YeRCFNXNbGuA4VDOVizefcS6KN9ayT80USw0LJ6FUnRZRY3vSyb/qYU/t 5AxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=S6okk6sE; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s11si5925760ybu.403.2022.01.18.04.50.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Jan 2022 04:50:13 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=S6okk6sE; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nongnu.org Received: from localhost ([::1]:54224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9nwA-0005o1-P0 for patch@linaro.org; Tue, 18 Jan 2022 07:50:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9nES-0006Cd-K3; Tue, 18 Jan 2022 07:05:03 -0500 Received: from [2a00:1450:4864:20::331] (port=53878 helo=mail-wm1-x331.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n9nEN-0005uN-CE; Tue, 18 Jan 2022 07:04:57 -0500 Received: by mail-wm1-x331.google.com with SMTP id n8so424925wmk.3; Tue, 18 Jan 2022 04:04:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=irXA5UGU6jp/uyMnLyEWDdOrhtz9iUme+ohFp2+tm1Y=; b=S6okk6sEbIcGREeOVGfH8LpbHzlkG5kRix0qSC4aG+ltLqKQKFFKeDD60HXsqFBd7C JXYeLbe9YLFEdc2iXFkApW/TB55XSW29macrR57La9t8XdphbtqDAAtBvjg5uuq39aNW JlKl6eUhKFSGNtiIF4VsqJgbLPNLkKyCLYHspFm9cpV4KG/p8uNMpB8XgkZcHsjbNUhH Kg6sDOlOD5hVYTVVEguOMolFPZUY1zqk543AeeBn5J1SOiQRx9ZOPp/UTSXTdbrz4TdJ DMcqMSn1mWvEBdr/SwpFzamfekURCKNEBP7UWgrW1pODGe5ZD5pgDUAPcAxc/mpTE8mh nJ4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=irXA5UGU6jp/uyMnLyEWDdOrhtz9iUme+ohFp2+tm1Y=; b=L0e7sqXzctO8LylmO4lsj2Jrcn68yOnOvA+a/sXjBLZGxnb8T2SDMiiBwWmGqJmwJG ZktBvti3qVordh+50HbqUkRoeKKNkaZyD7QtU8Sn0U8MEWW4ZJC2pXteUM55YMkLQTH8 dKSpDJL1HudVKjONYUJb16xE5eA3sgi+IEEw0Ej4ZTd71MHyE2ZYrPcTpRxW3MQXYPkN Ao6zONtTSbrexrQWnfC27jWxC4deeuWa3xWTWQu+syZKvQniIrZJ+h8i4Hmhly4Ad4Ak 2Q5ok8J5wMP44I1JRr6js7GNo2+StRrPpUK0D5GtnPDpoIeM2YXNYhDyFOZ2sVVh8DMK uZAQ== X-Gm-Message-State: AOAM5304W+cvNva/MGE4HJUAf9FXEMs5MxAOyt6MYbM/B8tx0Wbxu41e xGWtDyYkJU6tX9yPwYB1U5L8frdC2O8= X-Received: by 2002:a05:6000:144c:: with SMTP id v12mr24125044wrx.218.1642507442869; Tue, 18 Jan 2022 04:04:02 -0800 (PST) Received: from nuc.. (154.red-83-50-83.dynamicip.rima-tde.net. [83.50.83.154]) by smtp.gmail.com with ESMTPSA id x24sm1728901wmi.17.2022.01.18.04.04.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jan 2022 04:04:02 -0800 (PST) To: qemu-devel@nongnu.org Cc: Peter Xu , David Hildenbrand , Paolo Bonzini , qemu-block@nongnu.org, =?utf-8?q?Alex_?= =?utf-8?q?Benn=C3=A9e?= , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= Subject: [PULL 19/19] docs/devel: add some clarifying text for aliases Date: Tue, 18 Jan 2022 13:02:29 +0100 Message-Id: <20220118120229.196337-20-f4bug@amsat.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220118120229.196337-1-f4bug@amsat.org> References: <20220118120229.196337-1-f4bug@amsat.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::331 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-x331.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Reply-to: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Original-From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= via From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= From: Alex Bennée We do mention the limitation of single parenthood for memory_region_add_subregion but lets also make it clear how aliases help solve that conundrum. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20220110175104.2908956-7-alex.bennee@linaro.org> Signed-off-by: Philippe Mathieu-Daudé --- docs/devel/memory.rst | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/devel/memory.rst b/docs/devel/memory.rst index 5dc8a126829..69c5e3f914a 100644 --- a/docs/devel/memory.rst +++ b/docs/devel/memory.rst @@ -67,11 +67,15 @@ MemoryRegion): You initialize a pure container with memory_region_init(). -- alias: a subsection of another region. Aliases allow a region to be - split apart into discontiguous regions. Examples of uses are memory banks - used when the guest address space is smaller than the amount of RAM - addressed, or a memory controller that splits main memory to expose a "PCI - hole". Aliases may point to any type of region, including other aliases, +- alias: a subsection of another region. Aliases allow a region to be + split apart into discontiguous regions. Examples of uses are memory + banks used when the guest address space is smaller than the amount + of RAM addressed, or a memory controller that splits main memory to + expose a "PCI hole". You can also create aliases to avoid trying to + add the original region to multiple parents via + `memory_region_add_subregion`. + + Aliases may point to any type of region, including other aliases, but an alias may not point back to itself, directly or indirectly. You initialize these with memory_region_init_alias().