[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 12/31] exec: Use cpu_untagged_addr in g2h; split out g2h_u
From: |
Peter Maydell |
Subject: |
Re: [PATCH v5 12/31] exec: Use cpu_untagged_addr in g2h; split out g2h_untagged |
Date: |
Mon, 8 Feb 2021 13:39:19 +0000 |
On Wed, 3 Feb 2021 at 19:00, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> Use g2h_untagged in contexts that have no cpu, e.g. the binary
> loaders that operate before the primary cpu is created. As a
> collolary, target_mmap and friends must use untagged addresses,
"corollary"
> since they are used by the loaders.
>
> Use g2h_untagged on values returned from target_mmap, as the
> kernel never applies a tag itself.
>
> Use g2h_untagged on all pc values. The only current user of
> tags, aarch64, removes tags from code addresses upon branch,
> so "pc" is always untagged.
>
> Use g2h with the cpu context on hand whereever possible.
"wherever"
>
> Use g2h_untagged in lock_user, which will be updated soon.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM
- [PATCH v5 03/31] exec: Use uintptr_t for guest_base, (continued)
- [PATCH v5 05/31] exec: Improve types for guest_addr_valid, Richard Henderson, 2021/02/03
- [PATCH v5 07/31] linux-user: Tidy VERIFY_READ/VERIFY_WRITE, Richard Henderson, 2021/02/03
- [PATCH v5 10/31] linux-user: Fix guest_addr_valid vs reserved_va, Richard Henderson, 2021/02/03
- [PATCH v5 11/31] exec: Introduce cpu_untagged_addr, Richard Henderson, 2021/02/03
- [PATCH v5 12/31] exec: Use cpu_untagged_addr in g2h; split out g2h_untagged, Richard Henderson, 2021/02/03
- Re: [PATCH v5 12/31] exec: Use cpu_untagged_addr in g2h; split out g2h_untagged,
Peter Maydell <=
- [PATCH v5 14/31] linux-user: Use guest_range_valid in access_ok, Richard Henderson, 2021/02/03
- [PATCH v5 15/31] exec: Rename guest_{addr,range}_valid to *_untagged, Richard Henderson, 2021/02/03
- [PATCH v5 27/31] linux-user/aarch64: Signal SEGV_MTESERR for sync tag check fault, Richard Henderson, 2021/02/03
- [PATCH v5 28/31] linux-user/aarch64: Signal SEGV_MTEAERR for async tag check error, Richard Henderson, 2021/02/03
- [PATCH v5 06/31] linux-user: Check for overflow in access_ok, Richard Henderson, 2021/02/03
- [PATCH v5 04/31] exec: Use uintptr_t in cpu_ldst.h, Richard Henderson, 2021/02/03
- [PATCH v5 09/31] linux-user: Do not use guest_addr_valid for h2g_valid, Richard Henderson, 2021/02/03
- [PATCH v5 08/31] bsd-user: Tidy VERIFY_READ/VERIFY_WRITE, Richard Henderson, 2021/02/03