s390x/tcg: fix disabling/enabling DAT
commitf26852aa31d49bf83a8defd65538137a2f9da82c
authorDavid Hildenbrand <david@redhat.com>
Tue, 13 Feb 2018 16:12:40 +0000 (13 17:12 +0100)
committerCornelia Huck <cohuck@redhat.com>
Mon, 26 Feb 2018 11:55:26 +0000 (26 12:55 +0100)
treeeda59c67b2386c68def5cc993750103680d14bad
parent571729a00a2ec8514c350dae830a73a09698a043
s390x/tcg: fix disabling/enabling DAT

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
pages.

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20180213161240.19891-1-david@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
[CH: get rid of tabs]
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/cpu.h
target/s390x/mmu_helper.c
target/s390x/translate.c