LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Wincy Van <fanwenyi0529@gmail.com>
To: Paolo Bonzini <pbonzini@redhat.com>,
	gleb@kernel.org, yang.z.zhang@intel.com
Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
	"Wanpeng Li" <wanpeng.li@linux.intel.com>,
	"Jan Kiszka" <jan.kiszka@web.de>, 范文一 <fanwenyi0529@gmail.com>
Subject: [PATCH 0/5] KVM: nVMX: Enable nested apicv support.
Date: Fri, 16 Jan 2015 13:49:10 +0800	[thread overview]
Message-ID: <CACzj_yVRifkBrMt2q6Vjvr+anXr0n+9J_iERR+UnZVwz95jN5A@mail.gmail.com> (raw)

In nested vmx, the efficiency of interrupt virtualization is
very important, especially in high throughput scenes.

This patch set enables nested apicv support, which makes a
huge improvement in nested interrupt virtualization.

I also have done some simple tests:
L0: Intel Xeon E5-2630 v2
L1: CentOS 6.5 with 3.10.64-1.el6.elrepo.x86_64 kernel
    16 vcpus, 32GB memory.

L2: Windows Server 2008 R2 Datacenter
    8 vcpus, 16GB memory.

 1. Run wprime 32M, 8 threads.

         original                nested apicv

          7.782s                   7.172s

    Improvement: 7.8%

 2. Run iperf -s -w 64k in L1,
    iperf -c 10.1.0.2 -p 5001 -i 1 -t 30 -P 8 -w 64k in L2

         original                nested apicv

        2.12 Gbits/s             3.50 Gbits/s

    Improvement: 65.0%

_________________________________________________________

L2: CentOS 6.5 with 2.6.32-431 kernel
    8 vcpus, 16GB memory.

 1. Run iperf -s -w 64k in L1,
    iperf -c 10.1.0.2 -p 5001 -i 1 -t 30 -P 8 -w 64k in L2

         original                nested apicv

        6.58 Gbits/s             14.2 Gbits/s

    Improvement: 115.8%

Wincy Van (5):
  KVM: nVMX: Make nested control MSRs per-cpu.
  KVM: nVMX: Enable nested virtualize x2apic mode.
  KVM: nVMX: Enable nested apic register virtualization.
  KVM: nVMX: Enable nested virtual interrupt delivery.
  KVM: nVMX: Enable nested posted interrupt processing.

 arch/x86/kvm/vmx.c |  444 +++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 355 insertions(+), 89 deletions(-)

             reply	other threads:[~2015-01-16  5:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-16  5:49 Wincy Van [this message]
2015-01-20  3:48 ` Wincy Van
2015-01-20  3:59   ` Zhang, Yang Z

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=CACzj_yVRifkBrMt2q6Vjvr+anXr0n+9J_iERR+UnZVwz95jN5A@mail.gmail.com \
    --to=fanwenyi0529@gmail.com \
    --cc=gleb@kernel.org \
    --cc=jan.kiszka@web.de \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=wanpeng.li@linux.intel.com \
    --cc=yang.z.zhang@intel.com \
    --subject='Re: [PATCH 0/5] KVM: nVMX: Enable nested apicv support.' \
    /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

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).