[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/3] target-ppc: use separate indices for variou
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH 3/3] target-ppc: use separate indices for various translation modes |
Date: |
Fri, 20 Feb 2015 11:54:35 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
On 02/20/2015 09:57 AM, Paolo Bonzini wrote:
> PowerPC TCG flushes the TLB on every IR/DR change, which basically
> means on every user<->kernel context switch. Encode IR/DR in the
> MMU index.
>
> This brings the number of TLB flushes down from ~900000 to ~50000
> for starting up the Debian installer, which is in line with x86
> and gives a ~10% performance improvement.
>
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
> target-ppc/cpu.h | 12 +++++++-----
> target-ppc/excp_helper.c | 3 ---
> target-ppc/helper_regs.h | 15 +++++++++------
> 3 files changed, 16 insertions(+), 14 deletions(-)
I'm not an expert on ppc memory management, but it certainly LGTM.
r~