Skip to content

Limit type names to alphanumerical and some few special characters

Thomas Huth qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 7 repliesIn review
  2. v25 patches 7 repliesSuperseded
  3. v11 patch 4 repliesSuperseded

Changes in v3 from the cover letter

- Added Reviewed-bys to the first four patches
- Changed last patch to use strspn() as suggested by Daniel

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5docs/system/arm: Fix for rename of type "xlnx.bbram-ctrl"docs/system/arm/xlnx-versal-virt.rst+1 -11 reply
2/5hw: Replace anti-social QOM type names (again)docs/system/arm/xlnx-versal-virt.rst include/hw/misc/xlnx-versal-cframe-reg.h include/hw/misc/xlnx-versal-cfu.h +4 more+10 -101 reply
3/5memory: Remove "qemu:" prefix from the "qemu:ram-discard-manager" type nameinclude/exec/memory.h+1 -11 reply
4/5tests/unit/test-io-task: Rename "qemu:dummy" to avoid colon in the nametests/unit/test-io-task.c+1 -11 reply
5/5qom/object: Limit type names to alphanumerical and some few special charactersqom/object.c+41 -03 replies

Reviews trailers per patch

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

PatchThomas HuthFrancisco IglesiasDavid HildenbrandPhilippe Mathieu-DaudéPeter MaydellDaniel P. BerrangéAlistair Francis
1/5R-b A-b
2/5R-b R-b R-b
3/5R-b R-b R-b
4/5R-b R-b R-b
5/5R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 7 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/5] Limit type names to alphanumerical and some few special characters

QOM names currently don't have any enforced naming rules. This can be problematic, e.g. when they are used on the command line for the "-device" option (where the comma is used to separate properties). To avoid that such problematic type names come in again, let's restrict the set of acceptable characters during the type registration.

First four patches are clean-ups related to comma and colons in type names, and the final patch introduces the check for valid names.

v3:
- Added Reviewed-bys to the first four patches
- Changed last patch to use strspn() as suggested by Daniel

v2:
- Include Markus' patches in the series
- Add patches to clean up colons in type names
- Add the check to type_register_internal() instead of type_new() so that we can disallow colons, too
- Only allow '+' in legacy names

Markus Armbruster (2):
docs/system/arm: Fix for rename of type "xlnx.bbram-ctrl"
hw: Replace anti-social QOM type names (again)

Thomas Huth (3):
memory: Remove "qemu:" prefix from the "qemu:ram-discard-manager" type
name
tests/unit/test-io-task: Rename "qemu:dummy" to avoid colon in the
name
qom/object: Limit type names to alphanumerical and some few special
characters

 docs/system/arm/xlnx-versal-virt.rst     |  4 +--
 include/exec/memory.h                    |  2 +-
 include/hw/misc/xlnx-versal-cframe-reg.h |  2 +-
 include/hw/misc/xlnx-versal-cfu.h        |  6 ++--
 include/hw/misc/xlnx-versal-crl.h        |  2 +-
 include/hw/nvram/xlnx-efuse.h            |  2 +-
 include/hw/nvram/xlnx-versal-efuse.h     |  4 +--
 include/hw/nvram/xlnx-zynqmp-efuse.h     |  2 +-
 qom/object.c                             | 41 ++++++++++++++++++++++++
 tests/unit/test-io-task.c                |  2 +-
 10 files changed, 54 insertions(+), 13 deletions(-)
Signature · 1 line
2.42.0