unicorn/qemu/qapi
Marc-André Lureau fef464c4cb
qapi: update the qobject visitor to use QNUM_U64
Switch to use QNum/uint where appropriate to remove i64 limitation.

The input visitor will cast i64 input to u64 for compatibility
reasons (existing json QMP client already use negative i64 for large
u64, and expect an implicit cast in qemu).

Note: before the patch, uint64_t values above INT64_MAX are sent over
json QMP as negative values, e.g. UINT64_MAX is sent as -1. After the
patch, they are sent unmodified. Clearly a bug fix, but we have to
consider compatibility issues anyway. libvirt should cope fine,
because its parsing of unsigned integers accepts negative values
modulo 2^64. There's hope that other clients will, too.

Backports commit 5923f85fb82df7c8c60a89458a5ae856045e5ab1 from qemu
2018-03-03 18:40:51 -05:00
..
common.json qapi: Update scripts to commit 01b2ffcedd94ad7b42bc870e4c6936c87ad03429 2018-03-03 18:32:12 -05:00
Makefile.objs qapi: rename *qmp-*-visitor* to *qobject-*-visitor* 2018-02-26 15:42:37 -05:00
qapi-clone-visitor.c qapi: Remove visit_start_alternate() parameter promote_int 2018-03-03 18:34:35 -05:00
qapi-dealloc-visitor.c qapi: Remove visit_start_alternate() parameter promote_int 2018-03-03 18:34:35 -05:00
qapi-visit-core.c qapi: Remove visit_start_alternate() parameter promote_int 2018-03-03 18:34:35 -05:00
qobject-input-visitor.c qapi: update the qobject visitor to use QNUM_U64 2018-03-03 18:40:51 -05:00
qobject-output-visitor.c qapi: update the qobject visitor to use QNUM_U64 2018-03-03 18:40:51 -05:00
string-input-visitor.c qapi: Fix string input visitor regression for empty lists 2018-03-03 17:30:42 -05:00