[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [qemu-s390x] [Qemu-devel] [PATCH v3 17/29] s390x/tcg: Fault-safe mem
From: |
Richard Henderson |
Subject: |
Re: [qemu-s390x] [Qemu-devel] [PATCH v3 17/29] s390x/tcg: Fault-safe memmove |
Date: |
Tue, 17 Sep 2019 13:18:57 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
On 9/16/19 9:57 AM, David Hildenbrand wrote:
> Replace fast_memmove() variants by access_memmove() variants, that
> first try to probe access to all affected pages (maximum is two pages).
>
> Introduce access_get_byte()/access_set_byte(). We might be able to speed
> up memmove in special cases even further (do single-byte access, use
> memmove() for remaining bytes in page), however, we'll skip that for now.
>
> In MVCOS, simply always call access_memmove_as() and drop the TODO
> about LAP. LAP is already handled in the MMU.
>
> Get rid of adj_len_to_page(), which is now unused.
>
> Signed-off-by: David Hildenbrand <address@hidden>
> ---
> target/s390x/mem_helper.c | 232 ++++++++++++++++++++++----------------
> 1 file changed, 133 insertions(+), 99 deletions(-)
Reviewed-by: Richard Henderson <address@hidden>
r~
- Re: [qemu-s390x] [Qemu-devel] [PATCH v3 12/29] s390x/tcg: MVCS/MVCP: Properly wrap the length, (continued)
- [qemu-s390x] [PATCH v3 13/29] s390x/tcg: MVST: Check for specification exceptions, David Hildenbrand, 2019/09/16
- [qemu-s390x] [PATCH v3 14/29] s390x/tcg: MVST: Fix storing back the addresses to registers, David Hildenbrand, 2019/09/16
- [qemu-s390x] [PATCH v3 15/29] s390x/tcg: Always use MMU_USER_IDX for CONFIG_USER_ONLY, David Hildenbrand, 2019/09/16
- [qemu-s390x] [PATCH v3 18/29] s390x/tcg: MVCS/MVCP: Use access_memmove(), David Hildenbrand, 2019/09/16
- [qemu-s390x] [PATCH v3 19/29] s390x/tcg: MVC: Fault-safe handling on destructive overlaps, David Hildenbrand, 2019/09/16
- [qemu-s390x] [PATCH v3 17/29] s390x/tcg: Fault-safe memmove, David Hildenbrand, 2019/09/16
- Re: [qemu-s390x] [Qemu-devel] [PATCH v3 17/29] s390x/tcg: Fault-safe memmove,
Richard Henderson <=
- [qemu-s390x] [PATCH v3 16/29] s390x/tcg: Fault-safe memset, David Hildenbrand, 2019/09/16
- [qemu-s390x] [PATCH v3 20/29] s390x/tcg: MVCLU: Fault-safe handling, David Hildenbrand, 2019/09/16
- [qemu-s390x] [PATCH v3 21/29] s390x/tcg: OC: Fault-safe handling, David Hildenbrand, 2019/09/16
- [qemu-s390x] [PATCH v3 22/29] s390x/tcg: XC: Fault-safe handling, David Hildenbrand, 2019/09/16
- [qemu-s390x] [PATCH v3 23/29] s390x/tcg: NC: Fault-safe handling, David Hildenbrand, 2019/09/16
- [qemu-s390x] [PATCH v3 24/29] s390x/tcg: MVCIN: Fault-safe handling, David Hildenbrand, 2019/09/16
- [qemu-s390x] [PATCH v3 25/29] s390x/tcg: MVN: Fault-safe handling, David Hildenbrand, 2019/09/16
- [qemu-s390x] [PATCH v3 26/29] s390x/tcg: MVZ: Fault-safe handling, David Hildenbrand, 2019/09/16
- [qemu-s390x] [PATCH v3 27/29] s390x/tcg: MVST: Fault-safe handling, David Hildenbrand, 2019/09/16