From patchwork Tue Jan 18 12:02:16 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: 12716285 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7E816C433EF for ; Tue, 18 Jan 2022 12:32:33 +0000 (UTC) Received: from localhost ([::1]:43688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9nf6-0006dL-CI for qemu-devel@archiver.kernel.org; Tue, 18 Jan 2022 07:32:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9nEJ-0006C1-6l; Tue, 18 Jan 2022 07:05:00 -0500 Received: from [2a00:1450:4864:20::32e] (port=40821 helo=mail-wm1-x32e.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n9nEB-0005qx-KX; Tue, 18 Jan 2022 07:04:45 -0500 Received: by mail-wm1-x32e.google.com with SMTP id 25-20020a05600c231900b003497473a9c4so5172556wmo.5; Tue, 18 Jan 2022 04:03:00 -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=/8g3YUq2P+trQ4peexKIRwmbDVpKrAdGictXnf4Pf5U=; b=m2Yjx5uceyZlVbgSqrLCnL9aP6tUNY2FiOGcVKdoEVVTHIoqX3NYHsI6hreYn6WStt pKfKFcLXQgVLfeJMBkYGo+UNQSwQfQPJF4MASyJTq4FLR3PBQQusO9u8VyzvTA0kdMAl laf9lTN3DJ+npOgh5/S5Qk5pUhAOwxUHpCXNs65axqrdN5++p9NDzoQ1NkKBoYcp7V1S 8MYPfvHnm4kVmhrokvfaJ8kJfkYR8ddq18NDi0mTBHr9CDcZ8882wVkietVlMpsO2y9x 8OZu0ndr+XQoiu80x3VGCKXIfFz3l/PTq6EbCEXaM35PxTQ8z+CNxPf1mg7fCeiQcqMY Uh4g== 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=/8g3YUq2P+trQ4peexKIRwmbDVpKrAdGictXnf4Pf5U=; b=3yGDWxOHSfRgy9O8CVy2mGsrczHcr2QDky///ojMc/wr4+ZfOkMkuOjTzRDtdFo2NQ 63JSrg3HAP9NJbzxhrvizGpvmLqHSBW032dLgTflxyeD1uMtyzD++GWlryB0JHAKF487 VFPyC3UL4jITvtnE7Xsc58wS1RL88jUMPB3jeXVVoJY0fGpyWIz9hVXwuPUzLT32ExHN 9Vnl8McYy6CTC4EUSaZ7oEh2cc7EitQ2aPWWv8JOMh8YY2gxRDIaYQOxOgygGF7ARPGb TS4hYfcsWVgMp3DJOqaaTjUqNbW+zis1s4v6z6PcvggH9PwyAGOr6tUkBv9oMkktlPHG 4ncA== X-Gm-Message-State: AOAM5311bmKcjH9FCnnsD2soY32fbuHWVKGVZlWpgYjWwLIbMetj9KYG lv7YsIh1PVJbQnhp0C2ZkqWGg/2ns24= X-Google-Smtp-Source: ABdhPJxg/LwDRFD8x70gd6rBIXb7xzQ4+iCaEO9weAoZPlFd1K1jPWwuAPUroA3abhzPlv+Wxtz35Q== X-Received: by 2002:a05:600c:4e90:: with SMTP id f16mr21586674wmq.147.1642507379993; Tue, 18 Jan 2022 04:02:59 -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 y2sm2196033wmj.13.2022.01.18.04.02.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jan 2022 04:02:59 -0800 (PST) To: qemu-devel@nongnu.org Cc: Peter Xu , David Hildenbrand , Paolo Bonzini , qemu-block@nongnu.org, =?utf-8?q?Phili?= =?utf-8?q?ppe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Philippe_?= =?utf-8?q?Mathieu-Daud=C3=A9?= Subject: [PULL 06/19] memory: Update description of memory_region_is_mapped() Date: Tue, 18 Jan 2022 13:02:16 +0100 Message-Id: <20220118120229.196337-7-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::32e (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-x32e.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+qemu-devel=archiver.kernel.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: David Hildenbrand Let's update the documentation, making it clearer what the semantics of memory_region_is_mapped() actually are. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Peter Xu Signed-off-by: David Hildenbrand Message-Id: <20211102164317.45658-4-david@redhat.com> Signed-off-by: Philippe Mathieu-Daudé --- include/exec/memory.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/exec/memory.h b/include/exec/memory.h index fea1a493b9c..63be794a067 100644 --- a/include/exec/memory.h +++ b/include/exec/memory.h @@ -2297,7 +2297,8 @@ bool memory_region_present(MemoryRegion *container, hwaddr addr); /** * memory_region_is_mapped: returns true if #MemoryRegion is mapped - * into any address space. + * into another memory region, which does not necessarily imply that it is + * mapped into an address space. * * @mr: a #MemoryRegion which should be checked if it's mapped */