Received: from eggs.gnu.org ([2001:4830:134:3::10]:42889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7I79-0002K7-7g for qemu-devel@nongnu.org; Tue, 23 Jun 2015 02:55:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7I75-0003Wn-I4 for qemu-devel@nongnu.org; Tue, 23 Jun 2015 02:55:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7I75-0003Wj-Cb for qemu-devel@nongnu.org; Tue, 23 Jun 2015 02:55:19 -0400 From: Markus Armbruster 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> Date: Tue, 23 Jun 2015 08:55:16 +0200 In-Reply-To: <5588B837.3090305@huawei.com> (Gonglei's message of "Tue, 23 Jun 2015 09:36:55 +0800") Message-ID: <87d20m29t7.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain 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: Gonglei Cc: Kevin Wolf , Peter Maydell , Peter Crosthwaite , Eduardo Habkost , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Gerd Hoffmann , Stefan Hajnoczi , Paolo Bonzini 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?