kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] kvm: Get coalesced MMIO flushing out of the hot-path
@ 2012-06-25  7:00 Jan Kiszka
  2012-06-25  7:00 ` [PATCH 1/5] i82378: Remove bogus MMIO coalescing Jan Kiszka
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Jan Kiszka @ 2012-06-25  7:00 UTC (permalink / raw)
  To: Anthony Liguori, qemu-devel
  Cc: kvm, Liu Ping Fan, Avi Kivity, Marcelo Tosatti,
	Andreas Färber, Hervé Poussineau

We currently flush the coalesced MMIO buffer on every vmexit to
userspace. KVM only provides a single buffer per VM, so a central lock
is required to read from it. This is a contention point given a large
enough VCPU set. Moreover, we need to hold the BQL while replaying the
queued requests, probably for a long time until there is more fine
grained locking available. Good reasons to overcome the unconditional
flush.

The series achieves this by flushing only on selected memory region
accesses, either generically via the memory access dispatcher or
directly on certain VGA PIO accesses that are not yet fully converted.
Another reason to flush are remappings or other relevant region state
changes.

Please review carefully.

CC: Andreas Färber <andreas.faerber@web.de>
CC: Hervé Poussineau <hpoussin@reactos.org>

Jan Kiszka (5):
  i82378: Remove bogus MMIO coalescing
  memory: Flush coalesced MMIO on selected region access
  memory: Flush coalesced MMIO on mapping and state changes
  VGA: Flush coalesced MMIO on related MMIO/PIO accesses
  kvm: Stop flushing coalesced MMIO on vmexit

 hw/cirrus_vga.c |    7 +++++++
 hw/i82378.c     |    1 -
 hw/qxl.c        |    1 +
 hw/vga-isa-mm.c |    1 +
 hw/vga.c        |    5 +++++
 hw/vmware_vga.c |    1 +
 kvm-all.c       |    2 --
 memory.c        |   36 ++++++++++++++++++++++++++++++++++++
 memory.h        |   13 +++++++++++++
 9 files changed, 64 insertions(+), 3 deletions(-)

-- 
1.7.3.4


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

end of thread, other threads:[~2012-06-25 11:13 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-25  7:00 [PATCH 0/5] kvm: Get coalesced MMIO flushing out of the hot-path Jan Kiszka
2012-06-25  7:00 ` [PATCH 1/5] i82378: Remove bogus MMIO coalescing Jan Kiszka
2012-06-25  7:11   ` Hervé Poussineau
2012-06-25  7:15     ` Andreas Färber
2012-06-25  7:00 ` [PATCH 2/5] memory: Flush coalesced MMIO on selected region access Jan Kiszka
2012-06-25  8:36   ` Avi Kivity
2012-06-25  7:01 ` [PATCH 3/5] memory: Flush coalesced MMIO on mapping and state changes Jan Kiszka
2012-06-25  8:40   ` [Qemu-devel] " Andreas Färber
2012-06-25  8:57   ` Avi Kivity
2012-06-25 10:15     ` Jan Kiszka
2012-06-25 10:26       ` Jan Kiszka
2012-06-25 11:01         ` Avi Kivity
2012-06-25 11:13           ` Jan Kiszka
2012-06-25  7:01 ` [PATCH 4/5] VGA: Flush coalesced MMIO on related MMIO/PIO accesses Jan Kiszka
2012-06-25  7:01 ` [PATCH 5/5] kvm: Stop flushing coalesced MMIO on vmexit Jan Kiszka

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