public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/4] kvm: Make ioeventfd usable on s390.
@ 2013-02-22 12:09 Cornelia Huck
  2013-02-22 12:09 ` [RFC PATCH v2 1/4] KVM: Initialize irqfd from kvm_init() Cornelia Huck
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: Cornelia Huck @ 2013-02-22 12:09 UTC (permalink / raw)
  To: KVM; +Cc: linux-s390, qemu-devel, Michael S. Tsirkin

Here's the second attempt at implementing ioeventfd for s390.

Rather than the architecture-specific functions used in v1, we
now try to integrate with the kvm_io_device infrastructure.
Calls to diagnose 500 subcode 3 are now mapped to _write.
These devices are created on a new KVM_CSS_BUS when using a
new flag KVM_IOEVENTFD_FLAG_CSS. addr and datamatch are (ab)used
to contain the subchannel id and the virtqueue.

A drawback is that this interface is not easily extendable should
we want to attach other hypercalls or carry more payload.

Another limitation is the limit of 1000 io devices per bus, which
we would hit easily with a few hundred devices, but that should
be fixable.

v1 -> v2:
- Move irqfd initialization from a module init function to kvm_init,
  eliminating the need for a second module for kvm/s390.
- Use kvm_io_device for s390 css devices.


Cornelia Huck (4):
  KVM: Initialize irqfd from kvm_init().
  KVM: Introduce KVM_CSS_BUS.
  KVM: ioeventfd for s390 css devices.
  KVM: s390: Wire up ioeventfd.

 Documentation/virtual/kvm/api.txt |  7 +++++++
 arch/s390/kvm/Kconfig             |  1 +
 arch/s390/kvm/Makefile            |  2 +-
 arch/s390/kvm/diag.c              | 25 +++++++++++++++++++++++++
 arch/s390/kvm/kvm-s390.c          |  1 +
 include/linux/kvm_host.h          | 14 ++++++++++++++
 include/uapi/linux/kvm.h          |  2 ++
 virt/kvm/eventfd.c                | 15 ++++++++-------
 virt/kvm/kvm_main.c               |  6 ++++++
 9 files changed, 65 insertions(+), 8 deletions(-)

-- 
1.7.12.4


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

end of thread, other threads:[~2013-02-25  8:50 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-22 12:09 [RFC PATCH v2 0/4] kvm: Make ioeventfd usable on s390 Cornelia Huck
2013-02-22 12:09 ` [RFC PATCH v2 1/4] KVM: Initialize irqfd from kvm_init() Cornelia Huck
2013-02-22 12:09 ` [RFC PATCH v2 2/4] KVM: Introduce KVM_CSS_BUS Cornelia Huck
2013-02-24  9:57   ` Michael S. Tsirkin
2013-02-25  8:50     ` Cornelia Huck
2013-02-22 12:09 ` [RFC PATCH v2 3/4] KVM: ioeventfd for s390 css devices Cornelia Huck
2013-02-24  9:47   ` Michael S. Tsirkin
2013-02-25  8:49     ` Cornelia Huck
2013-02-22 12:09 ` [RFC PATCH v2 4/4] KVM: s390: Wire up ioeventfd Cornelia Huck
2013-02-24  9:45   ` Michael S. Tsirkin
2013-02-25  8:46     ` Cornelia Huck
2013-02-24  9:40 ` [RFC PATCH v2 0/4] kvm: Make ioeventfd usable on s390 Michael S. Tsirkin
2013-02-24  9:56 ` Michael S. Tsirkin
2013-02-25  8:43   ` Cornelia Huck

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