linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org
Cc: vkuznets@redhat.com
Subject: [PATCH rebase/RFC 0/4] x86/kvm/nVMX: optimize MMU switch between L1 and L2
Date: Fri, 27 Jul 2018 18:56:37 +0200	[thread overview]
Message-ID: <1532710601-45449-1-git-send-email-pbonzini@redhat.com> (raw)

This is a rebased version of Vitaly's RFC series.  This isn't
quite ready for application as I haven't yet thought through
the interactions between the root_mmu/guest_mmu split and
the multi-root caching.

Speaking of the multi-root caching, it is a bit of a duplicate work
with Vitaly's last three patches that avoided reinitialization if
the parameters and CR3 matched, so the series got smaller too.

The scalability improvement on the nested CPUID benchamrk is sensible:

                  -smp 1      -smp 16      -smp 48
  4.18            18k         86k
  kvm/queue       18k         68k  
  +gup_fast       18k         42k  
  +guest_mmu      18k         26k          42k

The slowdown between -smp 16 and -smp 48 is partly due to SMT,
because the machine has 28 cores.

Paolo

Vitaly Kuznetsov (4):
  x86/kvm/mmu: make vcpu->mmu a pointer to the current MMU
  x86/kvm/mmu.c: set get_pdptr hook in kvm_init_shadow_ept_mmu()
  x86/kvm/mmu.c: add kvm_mmu parameter to kvm_mmu_free_roots()
  x86/kvm/mmu: introduce guest_mmu

 arch/x86/include/asm/kvm_host.h |  11 ++-
 arch/x86/kvm/mmu.c              | 183 +++++++++++++++++++++-------------------
 arch/x86/kvm/mmu.h              |   8 +-
 arch/x86/kvm/mmu_audit.c        |  12 +--
 arch/x86/kvm/paging_tmpl.h      |  15 ++--
 arch/x86/kvm/svm.c              |  14 +--
 arch/x86/kvm/vmx.c              |  43 ++++++----
 arch/x86/kvm/x86.c              |  20 ++---
 8 files changed, 168 insertions(+), 138 deletions(-)

-- 
1.8.3.1


             reply	other threads:[~2018-07-27 16:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-27 16:56 Paolo Bonzini [this message]
2018-07-27 16:56 ` [PATCH 1/4] x86/kvm/mmu: make vcpu->mmu a pointer to the current MMU Paolo Bonzini
2018-07-27 16:56 ` [PATCH 2/4] x86/kvm/mmu.c: set get_pdptr hook in kvm_init_shadow_ept_mmu() Paolo Bonzini
2018-07-27 16:56 ` [PATCH 3/4] x86/kvm/mmu.c: add kvm_mmu parameter to kvm_mmu_free_roots() Paolo Bonzini
2018-07-27 16:56 ` [PATCH 4/4] x86/kvm/mmu: introduce guest_mmu Paolo Bonzini
2018-07-31 15:58 ` [PATCH rebase/RFC 0/4] x86/kvm/nVMX: optimize MMU switch between L1 and L2 Vitaly Kuznetsov
2018-07-31 16:52   ` Paolo Bonzini

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=1532710601-45449-1-git-send-email-pbonzini@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vkuznets@redhat.com \
    /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: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).