From: Alexey Kardashevskiy <aik@ozlabs.ru> To: linuxppc-dev@lists.ozlabs.org Cc: Alexey Kardashevskiy <aik@ozlabs.ru>, Alexander Graf <agraf@suse.com>, Paul Mackerras <paulus@samba.org>, kvm-ppc@vger.kernel.org, kvm@vger.kernel.org Subject: [PATCH kernel v3 0/7] KVM: PPC: Add in-kernel multitce handling Date: Mon, 15 Feb 2016 12:55:02 +1100 [thread overview] Message-ID: <1455501309-47200-1-git-send-email-aik@ozlabs.ru> (raw) These patches enable in-kernel acceleration for H_PUT_TCE_INDIRECT and H_STUFF_TCE hypercalls which allow doing multiple (up to 512) TCE entries update in a single call saving time on switching context. QEMU already supports these hypercalls so this is just an optimization. Both HV and PR KVM modes are supported. This does not affect VFIO, this support is coming next. This includes "powerpc: Make vmalloc_to_phys() public" as the patch depends on it. The individual patches have changelog. This is based on sha1 c05235d (kernelrelease = v4.5.0-rc3). Please comment. Thanks. Alexey Kardashevskiy (7): powerpc: Make vmalloc_to_phys() public KVM: PPC: Rework H_PUT_TCE/H_GET_TCE handlers KVM: PPC: Use RCU for arch.spapr_tce_tables KVM: PPC: Account TCE-containing pages in locked_vm KVM: PPC: Replace SPAPR_TCE_SHIFT with IOMMU_PAGE_SHIFT_4K KVM: PPC: Move reusable bits of H_PUT_TCE handler to helpers KVM: PPC: Add support for multiple-TCE hcalls Documentation/virtual/kvm/api.txt | 25 +++ arch/powerpc/include/asm/kvm_book3s_64.h | 2 - arch/powerpc/include/asm/kvm_host.h | 1 + arch/powerpc/include/asm/kvm_ppc.h | 16 ++ arch/powerpc/include/asm/pgtable.h | 3 + arch/powerpc/kvm/book3s.c | 2 +- arch/powerpc/kvm/book3s_64_vio.c | 146 ++++++++++++-- arch/powerpc/kvm/book3s_64_vio_hv.c | 322 +++++++++++++++++++++++++++---- arch/powerpc/kvm/book3s_hv.c | 26 ++- arch/powerpc/kvm/book3s_hv_rmhandlers.S | 4 +- arch/powerpc/kvm/book3s_pr_papr.c | 35 ++++ arch/powerpc/kvm/powerpc.c | 3 + arch/powerpc/mm/pgtable.c | 8 + arch/powerpc/perf/hv-24x7.c | 8 - 14 files changed, 531 insertions(+), 70 deletions(-) -- 2.5.0.rc3
WARNING: multiple messages have this Message-ID (diff)
From: Alexey Kardashevskiy <aik@ozlabs.ru> To: linuxppc-dev@lists.ozlabs.org Cc: Alexey Kardashevskiy <aik@ozlabs.ru>, Alexander Graf <agraf@suse.com>, Paul Mackerras <paulus@samba.org>, kvm-ppc@vger.kernel.org, kvm@vger.kernel.org Subject: [PATCH kernel v3 0/7] KVM: PPC: Add in-kernel multitce handling Date: Mon, 15 Feb 2016 01:55:02 +0000 [thread overview] Message-ID: <1455501309-47200-1-git-send-email-aik@ozlabs.ru> (raw) These patches enable in-kernel acceleration for H_PUT_TCE_INDIRECT and H_STUFF_TCE hypercalls which allow doing multiple (up to 512) TCE entries update in a single call saving time on switching context. QEMU already supports these hypercalls so this is just an optimization. Both HV and PR KVM modes are supported. This does not affect VFIO, this support is coming next. This includes "powerpc: Make vmalloc_to_phys() public" as the patch depends on it. The individual patches have changelog. This is based on sha1 c05235d (kernelrelease = v4.5.0-rc3). Please comment. Thanks. Alexey Kardashevskiy (7): powerpc: Make vmalloc_to_phys() public KVM: PPC: Rework H_PUT_TCE/H_GET_TCE handlers KVM: PPC: Use RCU for arch.spapr_tce_tables KVM: PPC: Account TCE-containing pages in locked_vm KVM: PPC: Replace SPAPR_TCE_SHIFT with IOMMU_PAGE_SHIFT_4K KVM: PPC: Move reusable bits of H_PUT_TCE handler to helpers KVM: PPC: Add support for multiple-TCE hcalls Documentation/virtual/kvm/api.txt | 25 +++ arch/powerpc/include/asm/kvm_book3s_64.h | 2 - arch/powerpc/include/asm/kvm_host.h | 1 + arch/powerpc/include/asm/kvm_ppc.h | 16 ++ arch/powerpc/include/asm/pgtable.h | 3 + arch/powerpc/kvm/book3s.c | 2 +- arch/powerpc/kvm/book3s_64_vio.c | 146 ++++++++++++-- arch/powerpc/kvm/book3s_64_vio_hv.c | 322 +++++++++++++++++++++++++++---- arch/powerpc/kvm/book3s_hv.c | 26 ++- arch/powerpc/kvm/book3s_hv_rmhandlers.S | 4 +- arch/powerpc/kvm/book3s_pr_papr.c | 35 ++++ arch/powerpc/kvm/powerpc.c | 3 + arch/powerpc/mm/pgtable.c | 8 + arch/powerpc/perf/hv-24x7.c | 8 - 14 files changed, 531 insertions(+), 70 deletions(-) -- 2.5.0.rc3
next reply other threads:[~2016-02-15 1:56 UTC|newest] Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-02-15 1:55 Alexey Kardashevskiy [this message] 2016-02-15 1:55 ` [PATCH kernel v3 0/7] KVM: PPC: Add in-kernel multitce handling Alexey Kardashevskiy 2016-02-15 1:55 ` [PATCH kernel v3 1/7] powerpc: Make vmalloc_to_phys() public Alexey Kardashevskiy 2016-02-15 1:55 ` Alexey Kardashevskiy 2016-02-15 3:47 ` David Gibson 2016-02-15 3:47 ` David Gibson 2016-02-15 1:55 ` [PATCH kernel v3 2/7] KVM: PPC: Rework H_PUT_TCE/H_GET_TCE handlers Alexey Kardashevskiy 2016-02-15 1:55 ` Alexey Kardashevskiy 2016-02-15 3:53 ` David Gibson 2016-02-15 3:53 ` David Gibson 2016-02-15 1:55 ` [PATCH kernel v3 3/7] KVM: PPC: Use RCU for arch.spapr_tce_tables Alexey Kardashevskiy 2016-02-15 1:55 ` Alexey Kardashevskiy 2016-02-15 1:55 ` [PATCH kernel v3 4/7] KVM: PPC: Account TCE-containing pages in locked_vm Alexey Kardashevskiy 2016-02-15 1:55 ` Alexey Kardashevskiy 2016-02-15 4:08 ` David Gibson 2016-02-15 4:08 ` David Gibson 2016-02-15 1:55 ` [PATCH kernel v3 5/7] KVM: PPC: Replace SPAPR_TCE_SHIFT with IOMMU_PAGE_SHIFT_4K Alexey Kardashevskiy 2016-02-15 1:55 ` Alexey Kardashevskiy 2016-02-15 1:55 ` [PATCH kernel v3 6/7] KVM: PPC: Move reusable bits of H_PUT_TCE handler to helpers Alexey Kardashevskiy 2016-02-15 1:55 ` Alexey Kardashevskiy 2016-02-15 22:59 ` David Gibson 2016-02-15 22:59 ` David Gibson 2016-02-15 1:55 ` [PATCH kernel v3 7/7] KVM: PPC: Add support for multiple-TCE hcalls Alexey Kardashevskiy 2016-02-15 1:55 ` Alexey Kardashevskiy 2016-02-16 0:40 ` David Gibson 2016-02-16 0:40 ` David Gibson 2016-02-16 1:05 ` Paul Mackerras 2016-02-16 1:05 ` Paul Mackerras 2016-02-16 2:14 ` David Gibson 2016-02-16 2:14 ` David Gibson 2016-02-18 2:39 ` Alexey Kardashevskiy 2016-02-18 2:39 ` Alexey Kardashevskiy 2016-02-29 8:37 ` Paul Mackerras 2016-02-29 8:37 ` Paul Mackerras 2016-02-29 11:30 ` [PATCH kernel v3 0/7] KVM: PPC: Add in-kernel multitce handling Paul Mackerras 2016-02-29 11:30 ` Paul Mackerras
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1455501309-47200-1-git-send-email-aik@ozlabs.ru \ --to=aik@ozlabs.ru \ --cc=agraf@suse.com \ --cc=kvm-ppc@vger.kernel.org \ --cc=kvm@vger.kernel.org \ --cc=linuxppc-dev@lists.ozlabs.org \ --cc=paulus@samba.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.