mbox series

[v2,0/2] tcg: Introduce probe_access() and return a host pointer

Message ID 20190830100959.26615-1-david@redhat.com (mailing list archive)
Headers show
Series tcg: Introduce probe_access() and return a host pointer | expand

Message

David Hildenbrand Aug. 30, 2019, 10:09 a.m. UTC
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.

v1 -> v2:
- Rebased to tcg-next
- "tcg: Make probe_write() return a pointer to the host page"
-- Rephrase documentation
- "tcg: Factor out probe_write() logic into probe_access()"
-- Don't check the MMU index

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Riku Voipio <riku.voipio@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   | 28 ++++++++++++++-----
 include/exec/exec-all.h |  9 +++++--
 3 files changed, 75 insertions(+), 22 deletions(-)

Comments

Richard Henderson Aug. 30, 2019, 3:29 p.m. UTC | #1
On 8/30/19 3:09 AM, David Hildenbrand wrote:
> 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.
> 
> v1 -> v2:
> - Rebased to tcg-next
> - "tcg: Make probe_write() return a pointer to the host page"
> -- Rephrase documentation
> - "tcg: Factor out probe_write() logic into probe_access()"
> -- Don't check the MMU index
> 
> Cc: Paolo Bonzini <pbonzini@redhat.com>
> Cc: Riku Voipio <riku.voipio@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   | 28 ++++++++++++++-----
>  include/exec/exec-all.h |  9 +++++--
>  3 files changed, 75 insertions(+), 22 deletions(-)
> 

Queued to tcg-next.


r~