From: Elena Afanasova <eafanasova@gmail.com>
To: qemu-devel@nongnu.org
Cc: Elena Afanasova <eafanasova@gmail.com>,
pbonzini@redhat.com, stefanha@redhat.com
Subject: [PATCH] accel/kvm: add PIO ioeventfds only in case kvm_eventfds_allowed is true
Date: Sat, 17 Oct 2020 14:01:01 -0700 [thread overview]
Message-ID: <20201017210102.26036-1-eafanasova@gmail.com> (raw)
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Elena Afanasova <eafanasova@gmail.com>
---
accel/kvm/kvm-all.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c
index 9ef5daf4c5..baaa54249d 100644
--- a/accel/kvm/kvm-all.c
+++ b/accel/kvm/kvm-all.c
@@ -2239,8 +2239,10 @@ static int kvm_init(MachineState *ms)
kvm_memory_listener_register(s, &s->memory_listener,
&address_space_memory, 0);
- memory_listener_register(&kvm_io_listener,
- &address_space_io);
+ if (kvm_eventfds_allowed) {
+ memory_listener_register(&kvm_io_listener,
+ &address_space_io);
+ }
memory_listener_register(&kvm_coalesced_pio_listener,
&address_space_io);
--
2.25.1
next reply other threads:[~2020-10-17 21:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-17 21:01 Elena Afanasova [this message]
2020-10-17 21:01 ` [PATCH] softmmu/memory: fix memory_region_ioeventfd_equal() Elena Afanasova
2020-10-19 10:25 ` Stefan Hajnoczi
2020-10-19 10:05 ` [PATCH] accel/kvm: add PIO ioeventfds only in case kvm_eventfds_allowed is true Stefan Hajnoczi
2020-10-20 15:40 ` Stefan Hajnoczi
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=20201017210102.26036-1-eafanasova@gmail.com \
--to=eafanasova@gmail.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--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 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.