Let's return a host pointer from probe_access() if possible and provide probe_access(). s390x will soon make use of probe_access() and use the provided host pointer.
Based on tcg-next and "tcg: probe_write() refactorings". Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: Riku Voipio <riku.voi...@iki.fi> David Hildenbrand (2): tcg: Make probe_write() return a pointer to the host page tcg: Factor out probe_write() logic into probe_access() accel/tcg/cputlb.c | 60 +++++++++++++++++++++++++++++++---------- accel/tcg/user-exec.c | 27 +++++++++++++++---- include/exec/exec-all.h | 9 +++++-- 3 files changed, 75 insertions(+), 21 deletions(-) -- 2.21.0