From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:53302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4dJ3-000693-GL for qemu-devel@nongnu.org; Mon, 05 Mar 2012 14:10:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S4dJ1-0000NX-EM for qemu-devel@nongnu.org; Mon, 05 Mar 2012 14:10:49 -0500 Received: from mail-pw0-f45.google.com ([209.85.160.45]:45101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4dJ1-0000Mx-5J for qemu-devel@nongnu.org; Mon, 05 Mar 2012 14:10:47 -0500 Received: by pbcuo5 with SMTP id uo5so4717296pbc.4 for ; Mon, 05 Mar 2012 11:10:44 -0800 (PST) Sender: fluxion From: Michael Roth Date: Mon, 5 Mar 2012 13:10:27 -0600 Message-Id: <1330974634-7527-1-git-send-email-mdroth@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v3 0/7] add fixed-width visitors and serialization tests List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, aliguori@us.ibm.com, afaerber@suse.de These patches apply on top of qemu.git master, and can also be obtained from: git://github.com/mdroth/qemu.git visitor-fixed-width-v3 CHANGES SINCE V2: - Fix qemu-test errors due to now-strict bounds-checking we doing assignment between signed/unsigned types. - uint* property getters/setters no longer use int* getters/setters. - valid devfn range is now explicitly enforced. CHANGES SINCE V1: - unit tests: covert QmpOutputVisitor qobject to json before passing it to QmpInputVisitor*. I.e., actually do the serialization :) - QmpInputVisitor, add handling for when a serialized QFloat gets read back as a QInt - unit tests: add coverage for String visitor - StringOutputVisitor: use %f for float representation These patches add fixed-width visitor types and switches all qdev users over to them. We also add a test suite which covers these, as well as does some sanity checking on Visitors to verify their usability/capabilities for data serialization. hw/mc146818rtc.c | 7 - hw/pci.c | 2 +- hw/pci.h | 2 +- hw/qdev-addr.c | 4 +- hw/qdev-properties.c | 151 +++++---- hw/qdev.h | 2 +- qapi/qapi-visit-core.c | 139 ++++++++ qapi/qapi-visit-core.h | 16 + qapi/qmp-input-visitor.c | 9 +- qapi/string-output-visitor.c | 2 +- test-string-output-visitor.c | 2 +- test-visitor-serialization.c | 784 ++++++++++++++++++++++++++++++++++++++++++ tests/Makefile | 6 +- 13 files changed, 1047 insertions(+), 79 deletions(-)