s390x/tcg: check for addressing exceptions for RRBE, SSKE and ISKE
commiteaa0feea7532429c3a9bec357ec4f77cb156fab0
authorDavid Hildenbrand <david@redhat.com>
Fri, 3 Sep 2021 15:55:05 +0000 (3 17:55 +0200)
committerThomas Huth <thuth@redhat.com>
Mon, 6 Sep 2021 14:24:05 +0000 (6 16:24 +0200)
tree4cdb62c716adf06d53b248bda1f6276d3d7f4f19
parent06d8a10a70b7ef14ebf88b874858f73f2dee1109
s390x/tcg: check for addressing exceptions for RRBE, SSKE and ISKE

Let's replace the ram_size check by a proper physical address space
check (for example, to prepare for memory hotplug), trigger addressing
exceptions and trace the return value of the storage key getter/setter.

Provide an helper mmu_absolute_addr_valid() to be used in other context
soon. Always test for "read" instead of "write" as we are not actually
modifying the page itself.

Signed-off-by: David Hildenbrand <david@redhat.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20210903155514.44772-5-david@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
target/s390x/helper.h
target/s390x/mmu_helper.c
target/s390x/s390x-internal.h
target/s390x/tcg/mem_helper.c