Files
android_kernel_xiaomi_sm8450/arch/powerpc/include/asm
Nicholas Piggin b755745147 KVM: PPC: Book3S HV: Lockless tlbie for HPT hcalls
tlbies to an LPAR do not have to be serialised since POWER4/PPC970,
after which the MMU_FTR_LOCKLESS_TLBIE feature was introduced to
avoid tlbie locking.

Since commit c17b98cf60 ("KVM: PPC: Book3S HV: Remove code for
PPC970 processors"), KVM no longer supports processors that do not
have this feature, so the tlbie locking can be removed completely.
A sanity check for the feature is put in kvmppc_mmu_hv_init.

Testing was done on a POWER9 system in HPT mode, with a -smp 32 guest
in HPT mode. 32 instances of the powerpc fork benchmark from selftests
were run with --fork, and the results measured.

Without this patch, total throughput was about 13.5K/sec, and this is
the top of the host profile:

   74.52%  [k] do_tlbies
    2.95%  [k] kvmppc_book3s_hv_page_fault
    1.80%  [k] calc_checksum
    1.80%  [k] kvmppc_vcpu_run_hv
    1.49%  [k] kvmppc_run_core

After this patch, throughput was about 51K/sec, with this profile:

   21.28%  [k] do_tlbies
    5.26%  [k] kvmppc_run_core
    4.88%  [k] kvmppc_book3s_hv_page_fault
    3.30%  [k] _raw_spin_lock_irqsave
    3.25%  [k] gup_pgd_range

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
2018-05-18 15:38:23 +10:00
..
2015-05-28 15:31:53 +02:00
2017-08-15 22:55:58 +10:00
2015-01-12 05:04:13 -08:00
2015-02-03 18:47:18 +01:00
2016-03-04 23:50:27 -06:00
2016-03-01 19:27:20 +11:00
2017-06-28 06:54:33 -07:00
2018-01-21 23:21:14 +11:00
2018-04-01 00:47:50 +11:00
2018-03-31 09:09:36 +11:00
2018-01-21 01:06:10 +11:00
2016-06-14 13:58:26 +10:00
2018-01-24 11:42:58 +11:00
2016-06-14 13:58:26 +10:00
2013-11-06 14:13:49 +11:00
2018-03-31 09:09:36 +11:00
2018-03-30 23:34:27 +11:00
2018-01-15 09:35:26 +01:00
2018-03-24 08:43:18 +11:00
2016-06-14 13:58:26 +10:00
2017-11-12 09:03:10 +11:00
2015-05-05 13:35:39 -06:00