s390x/tcg: Fault-safe memset
commit70ebd9ce1cb08ffb0ec0d7185f16520998545a7a
authorDavid Hildenbrand <david@redhat.com>
Tue, 3 Sep 2019 07:50:28 +0000 (3 09:50 +0200)
committerDavid Hildenbrand <david@redhat.com>
Mon, 23 Sep 2019 07:28:29 +0000 (23 09:28 +0200)
tree0900e27c28e799efb6ed71213bf289e71bb6bfcc
parent817791e83994deee2e5a59e3847f16673c8941bc
s390x/tcg: Fault-safe memset

Replace fast_memset() by access_memset(), that first tries to probe
access to all affected pages (maximum is two). We'll use the same
mechanism for other types of accesses soon.

Only in very rare cases (especially TLB_NOTDIRTY), we'll have to
fallback to ld/st helpers. Try to speed up that case as suggested by
Richard.

We'll rework most involved handlers soon to do all accesses via new
fault-safe helpers, especially MVC.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Hildenbrand <david@redhat.com>
target/s390x/mem_helper.c