Skip to content

introduce visitor for parsing suffixed integer

Igor Mammedov qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 7 repliesIn review
  2. v12 patches 14 repliesSuperseded

Changes in v2 from the cover letter

* Naming changes:
- s/visit_type_uint_suffixed_int/visit_type_suffixed_int/
- use 'suffix_factor' instead of 'unit'
* Added documentation to visit_type_suffixed_int()
* Fixed errp check.
* Style fixes

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2add visitor for parsing int[KMGT] input stringqapi/qapi-dealloc-visitor.c qapi/qapi-visit-core.c qapi/qapi-visit-core.h +1 more+72 -03 replies
2/2target-i386: use visit_type_suffixed_int() to parse tsc_freq property valuetarget-i386/cpu.c+2 -11 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchEduardo Habkost
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH 0/2 v2] introduce visitor for parsing suffixed integer

v2:
* Naming changes:
- s/visit_type_uint_suffixed_int/visit_type_suffixed_int/
- use 'suffix_factor' instead of 'unit'
* Added documentation to visit_type_suffixed_int()
* Fixed errp check.
* Style fixes

Reference to previous version dicussion:

    http://lists.gnu.org/archive/html/qemu-devel/2012-12/msg00758.html

Git tree for testing:
https://github.com/imammedo/qemu/tree/type_suffixed_int_v2

Igor Mammedov (2):
add visitor for parsing int[KMGT] input string
target-i386: use visit_type_suffixed_int() to parse tsc_freq property
value

 qapi/qapi-dealloc-visitor.c |  8 ++++++++
 qapi/qapi-visit-core.c      | 35 +++++++++++++++++++++++++++++++++++
 qapi/qapi-visit-core.h      |  4 ++++
 qapi/string-input-visitor.c | 25 +++++++++++++++++++++++++
 target-i386/cpu.c           |  3 ++-
 5 files changed, 74 insertions(+), 1 deletion(-)
Signature · 1 line
1.7.11.7