[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [qemu-s390x] [PATCH v1] s390x/tcg: fix disabling/enabling DAT
From: |
Richard Henderson |
Subject: |
Re: [qemu-s390x] [PATCH v1] s390x/tcg: fix disabling/enabling DAT |
Date: |
Tue, 13 Feb 2018 08:24:46 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
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
> pages.
>
> Signed-off-by: David Hildenbrand <address@hidden>
> ---
>
> 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 <address@hidden>
r~