From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcBcj-0000zM-26 for qemu-devel@nongnu.org; Wed, 16 Sep 2015 08:15:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcBcd-0006Ec-9Z for qemu-devel@nongnu.org; Wed, 16 Sep 2015 08:15:40 -0400 Received: from lhrrgout.huawei.com ([194.213.3.17]:10458) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcBcd-0006EQ-4B for qemu-devel@nongnu.org; Wed, 16 Sep 2015 08:15:35 -0400 References: <1442333283-13119-1-git-send-email-marcandre.lureau@redhat.com> <1442333283-13119-31-git-send-email-marcandre.lureau@redhat.com> From: Claudio Fontana Message-ID: <55F95D5B.4010809@huawei.com> Date: Wed, 16 Sep 2015 14:15:23 +0200 MIME-Version: 1.0 In-Reply-To: <1442333283-13119-31-git-send-email-marcandre.lureau@redhat.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v3 30/46] ivshmem: reset mask on device reset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: marcandre.lureau@redhat.com, qemu-devel@nongnu.org Cc: drjones@redhat.com, cam@cs.ualberta.ca, stefanha@redhat.com On 15.09.2015 18:07, marcandre.lureau@redhat.com wrote: > From: Marc-André Lureau > > The interrupt mask is a state value, it should be reset, like the value. probably you wanted to say "it should be reset, like the interrupt status". > > Signed-off-by: Marc-André Lureau > --- > hw/misc/ivshmem.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c > index 63e4c4f..6c0a829 100644 > --- a/hw/misc/ivshmem.c > +++ b/hw/misc/ivshmem.c > @@ -617,6 +617,7 @@ static void ivshmem_reset(DeviceState *d) > IVShmemState *s = IVSHMEM(d); > > s->intrstatus = 0; > + s->intrmask = 0; > ivshmem_use_msix(s); > } > > Ciao CLaudio