[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [RFC PATCH 3/4] ppc: Use split I/D mmu modes to avoid flu
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-ppc] [RFC PATCH 3/4] ppc: Use split I/D mmu modes to avoid flushes on interrupts |
Date: |
Sun, 19 Jul 2015 13:56:24 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 |
On 19/07/2015 00:20, Benjamin Herrenschmidt wrote:
> + * For BookE, we need in theory 8 MMU modes, which would
> + * reduce performance, so instead, we ignore msr_hv and
> + * will flush on HV context switches. We *could* improve
> + * things a bit if needed by using 4 and 5 as HV and flush
> + * only when HV mode changes AS but that complicates things
> + * as we would need to remember which is the current AS mode
> + * for HV for I and D and split more would be hell.
> + *
8 MMU modes wouldn't reduce performance, only 9 would:
#define CPU_TLB_BITS \
MIN(8, \
TCG_TARGET_TLB_DISPLACEMENT_BITS - CPU_TLB_ENTRY_BITS - \
(NB_MMU_MODES <= 1 ? 0 : \
NB_MMU_MODES <= 2 ? 1 : \
NB_MMU_MODES <= 4 ? 2 : \
NB_MMU_MODES <= 8 ? 3 : 4))
Paolo
- [Qemu-ppc] [RFC PATCH 1/4] ppc: Remove MMU_MODEn_SUFFIX definitions, Benjamin Herrenschmidt, 2015/07/18
- [Qemu-ppc] [RFC PATCH 4/4] ppc: Do some batching of TCG tlb flushes, Benjamin Herrenschmidt, 2015/07/18
- [Qemu-ppc] [RFC PATCH 3/4] ppc: Use split I/D mmu modes to avoid flushes on interrupts, Benjamin Herrenschmidt, 2015/07/18
- Re: [Qemu-ppc] [RFC PATCH 3/4] ppc: Use split I/D mmu modes to avoid flushes on interrupts,
Paolo Bonzini <=
- Re: [Qemu-ppc] [Qemu-devel] [RFC PATCH 3/4] ppc: Use split I/D mmu modes to avoid flushes on interrupts, Aurelien Jarno, 2015/07/19
- Re: [Qemu-ppc] [Qemu-devel] [RFC PATCH 3/4] ppc: Use split I/D mmu modes to avoid flushes on interrupts, Benjamin Herrenschmidt, 2015/07/19
- Re: [Qemu-ppc] [Qemu-devel] [RFC PATCH 3/4] ppc: Use split I/D mmu modes to avoid flushes on interrupts, Aurelien Jarno, 2015/07/20
- Re: [Qemu-ppc] [Qemu-devel] [RFC PATCH 3/4] ppc: Use split I/D mmu modes to avoid flushes on interrupts, Benjamin Herrenschmidt, 2015/07/20
[Qemu-ppc] [RFC PATCH 2/4] tlb: Add "ifetch" argument to cpu_mmu_index(), Benjamin Herrenschmidt, 2015/07/18