diff options
author | Elena Afanasova | 2020-10-17 23:01:01 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2020-11-03 19:55:13 +0100 |
commit | f9b49088952ddb6de6e9c2e5822a5e15434abc3b (patch) | |
tree | 239f3c40b4a724e1da51581c147776fb85aa518a /accel/kvm/kvm-all.c | |
parent | Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (diff) | |
download | qemu-f9b49088952ddb6de6e9c2e5822a5e15434abc3b.tar.gz qemu-f9b49088952ddb6de6e9c2e5822a5e15434abc3b.tar.xz qemu-f9b49088952ddb6de6e9c2e5822a5e15434abc3b.zip |
accel/kvm: add PIO ioeventfds only in case kvm_eventfds_allowed is true
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Elena Afanasova <eafanasova@gmail.com>
Message-Id: <20201017210102.26036-1-eafanasova@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'accel/kvm/kvm-all.c')
-rw-r--r-- | accel/kvm/kvm-all.c | 6 |
1 files 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); |