From: "Michael S. Tsirkin" <mst@redhat.com>
To: kvm@vger.kernel.org, pbonzini@redhat.com, gleb@redhat.com,
mtosatti@redhat.com
Subject: [PATCH 0/5] kvm-unittests: add pci PORT IO and MMIO speed tests
Date: Wed, 3 Apr 2013 11:52:19 +0300 [thread overview]
Message-ID: <cover.1364979131.git.mst@redhat.com> (raw)
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?
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
next reply other threads:[~2013-04-03 8:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-03 8:52 Michael S. Tsirkin [this message]
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 ` [PATCH 0/5] kvm-unittests: add pci PORT IO and MMIO " Gleb Natapov
2013-05-12 9:28 ` 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=cover.1364979131.git.mst@redhat.com \
--to=mst@redhat.com \
--cc=gleb@redhat.com \
--cc=kvm@vger.kernel.org \
--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 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.