qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Richard Henderson <richard.henderson@linaro.org>, qemu-devel@nongnu.org
Cc: alex.bennee@linaro.org, laurent@vivier.eu
Subject: Re: [PATCH v3 6/8] accel/tcg: Use interval tree for user-only page tracking
Date: Fri, 9 Dec 2022 08:18:08 +0100	[thread overview]
Message-ID: <5bf64a38-0750-dbdc-f51e-f24289395f80@linaro.org> (raw)
In-Reply-To: <20221209051914.398215-7-richard.henderson@linaro.org>

On 9/12/22 06:19, Richard Henderson wrote:
> Finish weaning user-only away from PageDesc.
> 
> Using an interval tree to track page permissions means that
> we can represent very large regions efficiently.
> 
> Resolves: https://gitlab.com/qemu-project/qemu/-/issues/290
> Resolves: https://gitlab.com/qemu-project/qemu/-/issues/967
> Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1214
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>   accel/tcg/internal.h           |   4 +-
>   accel/tcg/tb-maint.c           |  20 +-
>   accel/tcg/user-exec.c          | 615 ++++++++++++++++++++++-----------
>   tests/tcg/multiarch/test-vma.c |  22 ++
>   4 files changed, 451 insertions(+), 210 deletions(-)
>   create mode 100644 tests/tcg/multiarch/test-vma.c


>   int page_check_range(target_ulong start, target_ulong len, int flags)
>   {
> -    PageDesc *p;
> -    target_ulong end;
> -    target_ulong addr;
> -
> -    /*
> -     * This function should never be called with addresses outside the
> -     * guest address space.  If this assert fires, it probably indicates
> -     * a missing call to h2g_valid.
> -     */
> -    if (TARGET_ABI_BITS > L1_MAP_ADDR_SPACE_BITS) {
> -        assert(start < ((target_ulong)1 << L1_MAP_ADDR_SPACE_BITS));
> -    }

This removes the use of L1_MAP_ADDR_SPACE_BITS in user-only, maybe
remove the definition from "accel/tcg/internal.h"?


  reply	other threads:[~2022-12-09  7:19 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-09  5:19 [PATCH v3 0/8] accel/tcg: Rewrite user-only vma tracking Richard Henderson
2022-12-09  5:19 ` [PATCH v3 1/8] util: Add interval-tree.c Richard Henderson
2022-12-09  8:35   ` Philippe Mathieu-Daudé
2022-12-09  5:19 ` [PATCH v3 2/8] accel/tcg: Rename page_flush_tb Richard Henderson
2022-12-09  7:09   ` Philippe Mathieu-Daudé
2022-12-16 11:52   ` Alex Bennée
2022-12-09  5:19 ` [PATCH v3 3/8] accel/tcg: Use interval tree for TBs in user-only mode Richard Henderson
2022-12-09  5:19 ` [PATCH v3 4/8] accel/tcg: Use interval tree for TARGET_PAGE_DATA_SIZE Richard Henderson
2022-12-16 11:59   ` Alex Bennée
2022-12-09  5:19 ` [PATCH v3 5/8] accel/tcg: Move page_{get,set}_flags to user-exec.c Richard Henderson
2022-12-09  7:13   ` Philippe Mathieu-Daudé
2022-12-09  5:19 ` [PATCH v3 6/8] accel/tcg: Use interval tree for user-only page tracking Richard Henderson
2022-12-09  7:18   ` Philippe Mathieu-Daudé [this message]
2022-12-16 12:03     ` Alex Bennée
2022-12-09  5:19 ` [PATCH v3 7/8] accel/tcg: Move PageDesc tree into tb-maint.c for system Richard Henderson
2022-12-09  7:22   ` Philippe Mathieu-Daudé
2022-12-12 15:28     ` Richard Henderson
2022-12-12 18:19       ` Philippe Mathieu-Daudé
2022-12-09  9:28   ` Philippe Mathieu-Daudé
2022-12-09  5:19 ` [PATCH v3 8/8] accel/tcg: Move remainder of page locking to tb-maint.c Richard Henderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5bf64a38-0750-dbdc-f51e-f24289395f80@linaro.org \
    --to=philmd@linaro.org \
    --cc=alex.bennee@linaro.org \
    --cc=laurent@vivier.eu \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).