On 03/09/2021 17.55, David Hildenbrand wrote:
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 <[email protected]>
---
  target/s390x/helper.h         |  6 +++---
  target/s390x/mmu_helper.c     |  8 ++++++++
  target/s390x/s390x-internal.h |  1 +
  target/s390x/tcg/mem_helper.c | 36 ++++++++++++++++++++++-------------
  4 files changed, 35 insertions(+), 16 deletions(-)

Acked-by: Thomas Huth <[email protected]>


Reply via email to