From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zgv98-00023h-Ca for qemu-devel@nongnu.org; Tue, 29 Sep 2015 09:40:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zgv94-0002C1-9R for qemu-devel@nongnu.org; Tue, 29 Sep 2015 09:40:42 -0400 Received: from lhrrgout.huawei.com ([194.213.3.17]:57502) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zgv93-000291-Vw for qemu-devel@nongnu.org; Tue, 29 Sep 2015 09:40:38 -0400 References: <1443094669-4144-1-git-send-email-marcandre.lureau@redhat.com> <1443094669-4144-31-git-send-email-marcandre.lureau@redhat.com> From: Claudio Fontana Message-ID: <560A94D1.3040402@huawei.com> Date: Tue, 29 Sep 2015 15:40:33 +0200 MIME-Version: 1.0 In-Reply-To: <1443094669-4144-31-git-send-email-marcandre.lureau@redhat.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v4 30/47] 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: pbonzini@redhat.com, drjones@redhat.com, cam@cs.ualberta.ca, stefanha@redhat.com On 24.09.2015 13:37, marcandre.lureau@redhat.com wrote: > From: Marc-André Lureau > > The interrupt mask is a state value, 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 3231a46..9974f25 100644 > --- a/hw/misc/ivshmem.c > +++ b/hw/misc/ivshmem.c > @@ -620,6 +620,7 @@ static void ivshmem_reset(DeviceState *d) > IVShmemState *s = IVSHMEM(d); > > s->intrstatus = 0; > + s->intrmask = 0; > ivshmem_use_msix(s); > } > Reviewed-by: Claudio Fontana