From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7IGN-0006bP-HJ for qemu-devel@nongnu.org; Tue, 23 Jun 2015 03:04:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7IGD-0007CW-SQ for qemu-devel@nongnu.org; Tue, 23 Jun 2015 03:04:55 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:6778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7IGD-000779-4Y for qemu-devel@nongnu.org; Tue, 23 Jun 2015 03:04:45 -0400 Message-ID: <558904E3.3020308@huawei.com> Date: Tue, 23 Jun 2015 15:04:03 +0800 From: Gonglei MIME-Version: 1.0 References: <1433161230-29421-1-git-send-email-mst@redhat.com> <1433161230-29421-59-git-send-email-mst@redhat.com> <5585D6B0.3020803@redhat.com> <5588B837.3090305@huawei.com> <87d20m29t7.fsf@blackfin.pond.sub.org> In-Reply-To: <87d20m29t7.fsf@blackfin.pond.sub.org> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PULL v2 58/60] qdev: add 64bit properties List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: Kevin Wolf , Peter Maydell , Peter Crosthwaite , Eduardo Habkost , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Gerd Hoffmann , Stefan Hajnoczi , Paolo Bonzini On 2015/6/23 14:55, Markus Armbruster wrote: > Gonglei writes: > >> On 2015/6/21 5:10, Paolo Bonzini wrote: >>> >>> >>> On 01/06/2015 14:25, Michael S. Tsirkin wrote: >>>> +static uint64_t qdev_get_prop_mask64(Property *prop) >>>> +{ >>>> + assert(prop->info == &qdev_prop_bit); >>>> + return 0x1 << prop->bitnr; >>> >>> This needs to be 1ull. >>> >> Yes, and coverity spot it and some other OVERRUN problems. > > Patch author(s) know? > > Or are you taking care of them? > I have already posted a patch and Cc'd Gerd. Regards, -Gonglei