Re: [PATCH v2 0/4] KVM: selftests: add powerpc support

2023-04-10 Thread Joel Stanley
On Sat, 8 Apr 2023 at 04:01, Nicholas Piggin wrote: > > This series adds initial KVM selftests support for powerpc > (64-bit, BookS, radix MMU). This means the tests won't work on power8. Perhaps you could add something like this? --- a/tools/testing/selftests/kvm/lib/powerpc/processor.c +++

Re: [PATCH] KVM: PPC: BOOK3S: book3s_hv_nested.c: improve branch prediction for k.alloc

2023-04-10 Thread Kautuk Consul
On 2023-04-07 09:01:29, Sean Christopherson wrote: > On Fri, Apr 07, 2023, Bagas Sanjaya wrote: > > On Fri, Apr 07, 2023 at 05:31:47AM -0400, Kautuk Consul wrote: > > > I used the unlikely() macro on the return values of the k.alloc > > > calls and found that it changes the code generation a bit.

[PATCH v9 0/2] arm64: support batched/deferred tlb shootdown during page reclamation/migration

2023-04-10 Thread Yicong Yang
From: Yicong Yang Though ARM64 has the hardware to do tlb shootdown, the hardware broadcasting is not free. A simplest micro benchmark shows even on snapdragon 888 with only 8 cores, the overhead for ptep_clear_flush is huge even for paging out one page mapped by only one process: 5.36% a.out

[PATCH v9 2/2] arm64: support batched/deferred tlb shootdown during page reclamation/migration

2023-04-10 Thread Yicong Yang
From: Barry Song on x86, batched and deferred tlb shootdown has lead to 90% performance increase on tlb shootdown. on arm64, HW can do tlb shootdown without software IPI. But sync tlbi is still quite expensive. Even running a simplest program which requires swapout can prove this is true,

[PATCH v9 1/2] mm/tlbbatch: Introduce arch_tlbbatch_should_defer()

2023-04-10 Thread Yicong Yang
From: Anshuman Khandual The entire scheme of deferred TLB flush in reclaim path rests on the fact that the cost to refill TLB entries is less than flushing out individual entries by sending IPI to remote CPUs. But architecture can have different ways to evaluate that. Hence apart from checking

Re: [PATCH] powerpc/32: Include thread_info.h in head_booke.h

2023-04-10 Thread Masahiro Yamada
On Fri, Apr 7, 2023 at 2:51 AM Nathan Chancellor wrote: > > When building with W=1 after commit 80b6093b55e3 ("kbuild: add -Wundef > to KBUILD_CPPFLAGS for W=1 builds"), the following warning occurs. > > In file included from arch/powerpc/kvm/bookehv_interrupts.S:26: >