On 02/13/2018 08:12 AM, David Hildenbrand wrote:
> Currently, all memory accesses go via the MMU of the address space
> (primary, secondary, ...). This is bad, because we don't flush the TLB
> when disabling/enabling DAT. So we could add a tlb flush. However it
> is easier to simply select the MMU we already have in place for real
> memory access.
> All we have to do is point at the right MMU and allow to execute these
> Signed-off-by: David Hildenbrand <da...@redhat.com>
> This is necessary to make the upcomming kvm-unit-tests with vmalloc support
> pass under TCG.
> target/s390x/cpu.h | 7 ++++++-
> target/s390x/mmu_helper.c | 2 +-
> target/s390x/translate.c | 10 +++++++---
> 3 files changed, 14 insertions(+), 5 deletions(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>