qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] ivshmem assertion failure with EventNotifier


From: Paolo Bonzini
Subject: Re: [Qemu-devel] ivshmem assertion failure with EventNotifier
Date: Wed, 22 Aug 2012 14:01:33 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0

Il 22/08/2012 06:29, Cam Macdonell ha scritto:
> Hi Paolo,
> 
> I've noticed an assertion error when sending interrupts via ivshmem.
> I bisected to this patch.

Does this help?

diff --git a/hw/ivshmem.c b/hw/ivshmem.c
index b4d65a6..47f2a16 100644
--- a/hw/ivshmem.c
+++ b/hw/ivshmem.c
@@ -366,6 +366,10 @@ static void close_guest_eventfds(IVShmemState *s,
int posn)
 {
     int i, guest_curr_max;

+    if (!ivshmem_has_feature(s, IVSHMEM_IOEVENTFD)) {
+        return;
+    }
+
     guest_curr_max = s->peers[posn].nb_eventfds;

     memory_region_transaction_begin();

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]