From: Paolo Bonzini <pbonzini@redhat.com>
To: Elena Afanasova <eafanasova@gmail.com>, kvm@vger.kernel.org
Cc: stefanha@redhat.com, jag.raman@oracle.com,
elena.ufimtseva@oracle.com, jasowang@redhat.com, mst@redhat.com,
cohuck@redhat.com, john.levon@nutanix.com
Subject: Re: [RFC v3 0/5] Introduce MMIO/PIO dispatch file descriptors (ioregionfd)
Date: Sun, 21 Feb 2021 18:06:49 +0100 [thread overview]
Message-ID: <8fc8eae6-7bea-9333-47cb-e49cf86fa336@redhat.com> (raw)
In-Reply-To: <cover.1613828726.git.eafanasova@gmail.com>
On 21/02/21 13:04, Elena Afanasova wrote:
> This patchset introduces a KVM dispatch mechanism which can be used
> for handling MMIO/PIO accesses over file descriptors without returning
> from ioctl(KVM_RUN). This allows device emulation to run in another task
> separate from the vCPU task.
>
> This is achieved through KVM vm ioctl for registering MMIO/PIO regions and
> a wire protocol that KVM uses to communicate with a task handling an
> MMIO/PIO access.
>
> TODOs:
> * Implement KVM_EXIT_IOREGIONFD_FAILURE
> * Add non-x86 arch support
> * Add kvm-unittests
> * Flush waiters if ioregion is deleted
Hi ELena,
as a quick thing that jumped at me before starting the review, you
should add a test for the new API in tools/testing/selftests/kvm, as
well as documentation. Ideally, patch 4 would also add a testcase that
fails before and passes afterwards.
Also, does this work already with io_uring?
Paolo
> v3:
> - add FAST_MMIO bus support
> - add KVM_IOREGION_DEASSIGN flag
> - rename kvm_ioregion read/write file descriptors
> - split ioregionfd signal handling support into two patches
> - move ioregion_interrupted flag to ioregion_ctx
> - reorder ioregion_ctx fields
> - rework complete_ioregion operations
> - add signal handling support for crossing a page boundary case
> - change wire protocol license
> - fix ioregionfd state machine
> - remove ioregionfd_cmd info and drop appropriate macros
> - add comment on ioregionfd cmds/replies serialization
> - drop kvm_io_bus_finish/prepare()
>
> Elena Afanasova (5):
> KVM: add initial support for KVM_SET_IOREGION
> KVM: x86: add support for ioregionfd signal handling
> KVM: implement wire protocol
> KVM: add ioregionfd context
> KVM: enforce NR_IOBUS_DEVS limit if kmemcg is disabled
>
> arch/x86/kvm/Kconfig | 1 +
> arch/x86/kvm/Makefile | 1 +
> arch/x86/kvm/vmx/vmx.c | 40 ++-
> arch/x86/kvm/x86.c | 273 +++++++++++++++++-
> include/linux/kvm_host.h | 28 ++
> include/uapi/linux/ioregion.h | 30 ++
> include/uapi/linux/kvm.h | 25 ++
> virt/kvm/Kconfig | 3 +
> virt/kvm/eventfd.c | 25 ++
> virt/kvm/eventfd.h | 14 +
> virt/kvm/ioregion.c | 529 ++++++++++++++++++++++++++++++++++
> virt/kvm/ioregion.h | 15 +
> virt/kvm/kvm_main.c | 36 ++-
> 13 files changed, 996 insertions(+), 24 deletions(-)
> create mode 100644 include/uapi/linux/ioregion.h
> create mode 100644 virt/kvm/eventfd.h
> create mode 100644 virt/kvm/ioregion.c
> create mode 100644 virt/kvm/ioregion.h
>
next prev parent reply other threads:[~2021-02-21 17:08 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-21 12:04 [RFC v3 0/5] Introduce MMIO/PIO dispatch file descriptors (ioregionfd) Elena Afanasova
2021-02-21 12:04 ` [RFC v3 1/5] KVM: add initial support for KVM_SET_IOREGION Elena Afanasova
2021-02-24 10:06 ` Stefan Hajnoczi
2021-03-05 13:09 ` Cornelia Huck
2021-03-09 5:26 ` Jason Wang
2021-03-22 9:57 ` Stefan Hajnoczi
2021-02-21 12:04 ` [RFC v3 2/5] KVM: x86: add support for ioregionfd signal handling Elena Afanasova
2021-02-24 10:42 ` Stefan Hajnoczi
2021-03-09 5:51 ` Jason Wang
2021-03-17 14:19 ` Elena Afanasova
2021-03-26 6:00 ` Jason Wang
2021-02-21 12:04 ` [RFC v3 3/5] KVM: implement wire protocol Elena Afanasova
2021-02-24 11:02 ` Stefan Hajnoczi
2021-03-09 6:19 ` Jason Wang
2021-03-17 13:08 ` Elena Afanasova
2021-03-26 6:21 ` Jason Wang
2021-03-29 16:17 ` Stefan Hajnoczi
2021-02-21 12:04 ` [RFC v3 4/5] KVM: add ioregionfd context Elena Afanasova
2021-02-24 11:27 ` Stefan Hajnoczi
2021-03-09 7:54 ` Jason Wang
2021-03-09 8:01 ` Paolo Bonzini
2021-03-10 13:20 ` Elena Afanasova
2021-03-10 14:11 ` Paolo Bonzini
2021-03-10 16:41 ` Elena Afanasova
[not found] ` <6ff79d0b-3b6a-73d3-ffbd-e4af9758735f@redhat.com>
2021-03-17 10:46 ` Elena Afanasova
2021-03-26 6:47 ` Jason Wang
2021-02-21 12:04 ` [RFC v3 5/5] KVM: enforce NR_IOBUS_DEVS limit if kmemcg is disabled Elena Afanasova
2021-02-21 17:06 ` Paolo Bonzini [this message]
2021-02-22 16:40 ` [RFC v3 0/5] Introduce MMIO/PIO dispatch file descriptors (ioregionfd) Elena Afanasova
2021-02-24 11:34 ` Stefan Hajnoczi
-- strict thread matches above, loose matches on Subject: below --
2021-07-14 15:27 Jörg Thalheim
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=8fc8eae6-7bea-9333-47cb-e49cf86fa336@redhat.com \
--to=pbonzini@redhat.com \
--cc=cohuck@redhat.com \
--cc=eafanasova@gmail.com \
--cc=elena.ufimtseva@oracle.com \
--cc=jag.raman@oracle.com \
--cc=jasowang@redhat.com \
--cc=john.levon@nutanix.com \
--cc=kvm@vger.kernel.org \
--cc=mst@redhat.com \
--cc=stefanha@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