public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: kvm@vger.kernel.org, pbonzini@redhat.com, mtosatti@redhat.com
Subject: Re: [PATCH 0/5] kvm-unittests: add pci PORT IO and MMIO speed tests
Date: Sun, 14 Apr 2013 17:51:03 +0300	[thread overview]
Message-ID: <20130414145103.GS17919@redhat.com> (raw)
In-Reply-To: <cover.1364979131.git.mst@redhat.com>

On Wed, Apr 03, 2013 at 11:52:19AM +0300, Michael S. Tsirkin wrote:
> These patches add ability to measure speed of MMIO versus PIO, in
> different configurations. As I didn't want to reserve a hardcoded range
> of memory, I added pci bus scan support instead.  Used together with the
> new pci-testdev backend.  When not present, the new tests are skipped.
> 
> Example output:
> 	mmio-no-eventfd:pci-mem 8796
> 	mmio-wildcard-eventfd:pci-mem 3609
> 	mmio-datamatch-eventfd:pci-mem 3685
> 	portio-no-eventfd:pci-io 5287
> 	portio-wildcard-eventfd:pci-io 1762
> 	portio-datamatch-eventfd:pci-io 1777
> 
> First interesting conclusion is that the overhead of MMIO
> exit to QEMU as compared to PIO is double that of
> MMIO ioeventfd as compared to PIO eventfd. Is this a known fact?
> 
Looks fine to me. Will apply when QEMU part will land in upstream.

> Michael S. Tsirkin (5):
>   kvm-unittest: add printf %c support
>   kvm-unittest: libcflat: add offsetof
>   libcflat.h: define NULL
>   lib: add pci bus scan support
>   vmexit: add pci io and memory speed tests
> 
>  config-x86-common.mak |   1 +
>  lib/libcflat.h        |   3 +
>  lib/printf.c          |   3 +
>  lib/x86/pci.c         |  55 ++++++++++++
>  lib/x86/pci.h         |  16 ++++
>  x86-run               |  13 ++-
>  x86/vmexit.c          | 226 +++++++++++++++++++++++++++++++++++++++++++++++---
>  7 files changed, 302 insertions(+), 15 deletions(-)
>  create mode 100644 lib/x86/pci.c
>  create mode 100644 lib/x86/pci.h
> 
> -- 
> MST

--
			Gleb.

  parent reply	other threads:[~2013-04-14 14:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-03  8:52 [PATCH 0/5] kvm-unittests: add pci PORT IO and MMIO speed tests Michael S. Tsirkin
2013-04-03  8:52 ` [PATCH 1/5] kvm-unittest: add printf %c support Michael S. Tsirkin
2013-04-03  8:52 ` [PATCH 2/5] kvm-unittest: libcflat: add offsetof Michael S. Tsirkin
2013-04-03  8:52 ` [PATCH 3/5] libcflat.h: define NULL Michael S. Tsirkin
2013-04-03  8:52 ` [PATCH 4/5] lib: add pci bus scan support Michael S. Tsirkin
2013-04-03  8:52 ` [PATCH 5/5] vmexit: add pci io and memory speed tests Michael S. Tsirkin
2013-04-14 14:51 ` Gleb Natapov [this message]
2013-05-12  9:28 ` [PATCH 0/5] kvm-unittests: add pci PORT IO and MMIO " Gleb Natapov

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=20130414145103.GS17919@redhat.com \
    --to=gleb@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=mtosatti@redhat.com \
    --cc=pbonzini@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