Received: from eggs.gnu.org ([2001:4830:134:3::10]:39516) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c6tjT-0004Nm-8q for qemu-devel@nongnu.org; Wed, 16 Nov 2016 01:30:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c6tjQ-0008PM-6H for qemu-devel@nongnu.org; Wed, 16 Nov 2016 01:30:07 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34900) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c6tjQ-0008PG-1U for qemu-devel@nongnu.org; Wed, 16 Nov 2016 01:30:04 -0500 Date: Wed, 16 Nov 2016 11:59:55 +0530 (IST) From: P J P In-Reply-To: <292d3a97-4dc9-6678-6a4f-acb5856e91f7@reactos.org> Message-ID: References: <1476275861-27613-1-git-send-email-ppandit@redhat.com> <33183CC9F5247A488A2544077AF19020B0429759@SZXEMA503-MBS.china.huawei.com> <9d8d6a84-1220-2e61-dbdc-b86d5e348bef@redhat.com> <292d3a97-4dc9-6678-6a4f-acb5856e91f7@reactos.org> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] dma: rc4030: limit interval timer reload value List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-15?Q?Herv=E9_Poussineau?= Cc: Paolo Bonzini , "Gonglei (Arei)" , Qemu Developers , Huawei PSIRT , Aurelien Jarno , "Michael S. Tsirkin" +-- On Wed, 16 Nov 2016, Herv=E9 Poussineau wrote --+ | I don't have any datasheet for this device either, so I tested with rea= l=20 | programs. Those initialize itr field to either 0 or to 9, so your mask=20 | doesn't change anything. |=20 | Tested-by: Herv=E9 Poussineau Thank you so much. To confirm, do we need to update the mask to maybe=20 0x000F? =20 | > > > case 0x0228: | > > > - s->itr =3D val; | > > > + s->itr =3D val & 0x01FF; | > > > qemu_irq_lower(s->timer_irq); Thank you. -- Prasad J Pandit / Red Hat Product Security Team 47AF CE69 3A90 54AA 9045 1053 DD13 3D32 FE5B 041F