Skip to content

Implement and test ASN.1 BER visitors

Stefan Berger qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest8 patches 1 replyIn review
  2. v49 patches 4 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8Move some contents of savevm.c to qemu-file.cinclude/migration/qemu-file.h savevm.c util/Makefile.objs +1 more+722 -6900 replies
2/83 new file wrappersinclude/migration/qemu-file.h util/qemu-file.c+33 -00 replies
3/8QEMUSizedBufferinclude/migration/qemu-file.h include/qemu-common.h util/qemu-file.c+436 -00 replies
4/8QAPI: add type_sized_bufferinclude/qapi/visitor-impl.h include/qapi/visitor.h qapi/qapi-visit-core.c+14 -00 replies
5/8ASN.1 output visitorconfigure include/qapi/ber-output-visitor.h include/qapi/ber.h +6 more+1027 -10 replies
6/8ASN.1 input visitorinclude/qapi/ber-input-visitor.h qapi/Makefile.objs qapi/ber-input-visitor.c+1184 -10 replies
7/8Extend test-visitor-serialization with ASN.1 visitor(s)tests/Makefile tests/test-visitor-serialization.c+79 -10 replies
8/8ASN.1 specific test casestests/Makefile tests/test-ber-visitor.c+907 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [Qemu-devel] [PATCH v5 0/8] Implement and test ASN.1 BER visitors

This patch series implements ASN.1 BER visitors for encoding and decoding of data into byte streams.

This is the last post of this series with some issues fixed, the visitor_optional implemented and all possible tests in test-visitor-serialization passing.

Stefan

Stefan Berger (8):
Move some contents of savevm.c to qemu-file.c 3 new file wrappers
QEMUSizedBuffer
QAPI: add type_sized_buffer
ASN.1 output visitor
ASN.1 input visitor
Extend test-visitor-serialization with ASN.1 visitor(s) ASN.1 specific test cases

 configure                          |    2 +-
 include/migration/qemu-file.h      |   22 +
 include/qapi/ber-input-visitor.h   |   30 +
 include/qapi/ber-output-visitor.h  |   32 +
 include/qapi/ber.h                 |  113 ++++
 include/qapi/visitor-impl.h        |    3 +
 include/qapi/visitor.h             |    3 +
 include/qemu-common.h              |   14 +
 qapi/Makefile.objs                 |    1 +
 qapi/ber-common.c                  |   86 +++
 qapi/ber-common.h                  |   29 +
 qapi/ber-input-visitor.c           | 1153 ++++++++++++++++++++++++++++++++++
 qapi/ber-output-visitor.c          |  705 +++++++++++++++++++++
 qapi/qapi-visit-core.c             |    8 +
 savevm.c                           |  690 --------------------
 tests/Makefile                     |   15 +-
 tests/test-ber-visitor.c           |  894 ++++++++++++++++++++++++++
 tests/test-visitor-serialization.c |   78 +++
 util/Makefile.objs                 |    1 +
 util/qemu-file.c                   | 1214 ++++++++++++++++++++++++++++++++++++
 20 files changed, 4401 insertions(+), 692 deletions(-)
 create mode 100644 include/qapi/ber-input-visitor.h
 create mode 100644 include/qapi/ber-output-visitor.h
 create mode 100644 include/qapi/ber.h
 create mode 100644 qapi/ber-common.c
 create mode 100644 qapi/ber-common.h
 create mode 100644 qapi/ber-input-visitor.c
 create mode 100644 qapi/ber-output-visitor.c
 create mode 100644 tests/test-ber-visitor.c
 create mode 100644 util/qemu-file.c
Signature · 1 line
1.7.11.7