s390x/tcg: Use guest_addr_valid() instead of h2g_valid() in probe_write_access()
authorDavid Hildenbrand <david@redhat.com>
Mon, 26 Aug 2019 07:51:06 +0000 (09:51 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 3 Sep 2019 15:34:18 +0000 (08:34 -0700)
commit9e5bef4920b85f30e6f1588b742abb10bc840c93
treef3650cc0bc2366cbfe65bad524b89ec70f310847
parent03a981893c99faba84bb373976796ad7dce0aecc
s390x/tcg: Use guest_addr_valid() instead of h2g_valid() in probe_write_access()

If I'm not completely wrong, we are dealing with guest addresses here
and not with host addresses. Use the right check.

Fixes: c5a7392cfb96 ("s390x/tcg: Provide probe_write_access helper")
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <20190826075112.25637-2-david@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/s390x/mem_helper.c