From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57187) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkCCn-0002Ek-Gn for qemu-devel@nongnu.org; Tue, 22 Aug 2017 12:39:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkCCm-0005xu-Mt for qemu-devel@nongnu.org; Tue, 22 Aug 2017 12:39:05 -0400 From: Markus Armbruster References: <1502117160-24655-1-git-send-email-armbru@redhat.com> <1502117160-24655-13-git-send-email-armbru@redhat.com> <20170822145505.643f74fa@nial.brq.redhat.com> <87shgjaezt.fsf@dusky.pond.sub.org> <20170822174558.5db57e9f@nial.brq.redhat.com> Date: Tue, 22 Aug 2017 18:38:48 +0200 In-Reply-To: <20170822174558.5db57e9f@nial.brq.redhat.com> (Igor Mammedov's message of "Tue, 22 Aug 2017 17:45:58 +0200") Message-ID: <87tw0zftgn.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [RFC PATCH 12/56] pc-dimm: Make size and address unsigned in QAPI/QMP List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: kwolf@redhat.com, famz@redhat.com, qemu-block@nongnu.org, quintela@redhat.com, jcody@redhat.com, qemu-devel@nongnu.org, dgilbert@redhat.com, marcandre.lureau@redhat.com, pbonzini@redhat.com, mreitz@redhat.com, jsnow@redhat.com Igor Mammedov writes: > On Tue, 22 Aug 2017 15:50:14 +0200 > Markus Armbruster wrote: > >> Igor Mammedov writes: >> >> > On Mon, 7 Aug 2017 16:45:16 +0200 >> > Markus Armbruster wrote: >> > >> >> Sizes and addresses should use QAPI type 'size' (uint64_t). >> >> PCDIMMDeviceInfo members @addr and @size are 'int' (int64_t). >> >> qmp_pc_dimm_device_list() implicitly converts from uint64_t. >> >> >> >> Change these PCDIMMDeviceInfo members to 'size'. >> >> >> >> query-memory-devices now reports sizes and addresses above 2^63-1 >> >> correctly instead of their (negative) two's complement. >> >> >> >> HMP's "info memory-devices" already reported them correctly, because >> >> it printed the signed integers with PRIx64 and PRIu32. >> > s/signed/unsigned/ >> >> Before this patch: signed. Afterwards: unsigned. Would >> >> HMP's "info memory-devices" already reported them correctly, because >> it printed the signed (before the patch) integers with PRIx64 and >> PRIu32. >> >> be clearer? > yes, that's more clear Okay, I'll update my commit messages. Thanks!