[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 6/8] accel/tcg: Use interval tree for user-only page track
From: |
Alex Bennée |
Subject: |
Re: [PATCH v3 6/8] accel/tcg: Use interval tree for user-only page tracking |
Date: |
Fri, 16 Dec 2022 12:03:04 +0000 |
User-agent: |
mu4e 1.9.6; emacs 29.0.60 |
Philippe Mathieu-Daudé <philmd@linaro.org> writes:
> 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"?
It gets cleaned up in a following patch. Anyway:
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
- Re: [PATCH v3 2/8] accel/tcg: Rename page_flush_tb, (continued)
- [PATCH v3 1/8] util: Add interval-tree.c, Richard Henderson, 2022/12/09
- [PATCH v3 3/8] accel/tcg: Use interval tree for TBs in user-only mode, Richard Henderson, 2022/12/09
- [PATCH v3 4/8] accel/tcg: Use interval tree for TARGET_PAGE_DATA_SIZE, Richard Henderson, 2022/12/09
- [PATCH v3 5/8] accel/tcg: Move page_{get,set}_flags to user-exec.c, Richard Henderson, 2022/12/09
- [PATCH v3 6/8] accel/tcg: Use interval tree for user-only page tracking, Richard Henderson, 2022/12/09
- [PATCH v3 8/8] accel/tcg: Move remainder of page locking to tb-maint.c, Richard Henderson, 2022/12/09
- [PATCH v3 7/8] accel/tcg: Move PageDesc tree into tb-maint.c for system, Richard Henderson, 2022/12/09
- Re: [PATCH v3 7/8] accel/tcg: Move PageDesc tree into tb-maint.c for system, Philippe Mathieu-Daudé, 2022/12/09