public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] kvm-unittests: add pci PORT IO and MMIO speed tests
@ 2013-04-03  8:52 Michael S. Tsirkin
  2013-04-03  8:52 ` [PATCH 1/5] kvm-unittest: add printf %c support Michael S. Tsirkin
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Michael S. Tsirkin @ 2013-04-03  8:52 UTC (permalink / raw)
  To: kvm, pbonzini, gleb, mtosatti

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-05-12  9:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH 0/5] kvm-unittests: add pci PORT IO and MMIO " Gleb Natapov
2013-05-12  9:28 ` Gleb Natapov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox