qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/5] Limit type names to alphanumerical and some few special characters
@ 2023-11-17 11:44 Thomas Huth
  2023-11-17 11:44 ` [PATCH v3 1/5] docs/system/arm: Fix for rename of type "xlnx.bbram-ctrl" Thomas Huth
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Thomas Huth @ 2023-11-17 11:44 UTC (permalink / raw)
  To: qemu-devel, Daniel P. Berrangé, Markus Armbruster
  Cc: Alistair Francis, Edgar E. Iglesias, Peter Maydell, Paolo Bonzini,
	Peter Xu, David Hildenbrand, Philippe Mathieu-Daudé,
	Francisco Iglesias, Eduardo Habkost, Thomas Huth

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(-)

-- 
2.42.0



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-11-21  3:16 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-17 11:44 [PATCH v3 0/5] Limit type names to alphanumerical and some few special characters Thomas Huth
2023-11-17 11:44 ` [PATCH v3 1/5] docs/system/arm: Fix for rename of type "xlnx.bbram-ctrl" Thomas Huth
2023-11-21  3:10   ` Alistair Francis
2023-11-17 11:44 ` [PATCH v3 2/5] hw: Replace anti-social QOM type names (again) Thomas Huth
2023-11-21  3:11   ` Alistair Francis
2023-11-17 11:44 ` [PATCH v3 3/5] memory: Remove "qemu:" prefix from the "qemu:ram-discard-manager" type name Thomas Huth
2023-11-21  3:13   ` Alistair Francis
2023-11-17 11:44 ` [PATCH v3 4/5] tests/unit/test-io-task: Rename "qemu:dummy" to avoid colon in the name Thomas Huth
2023-11-21  3:13   ` Alistair Francis
2023-11-17 11:44 ` [PATCH v3 5/5] qom/object: Limit type names to alphanumerical and some few special characters Thomas Huth
2023-11-17 12:25   ` Philippe Mathieu-Daudé
2023-11-17 13:48     ` Thomas Huth
2023-11-21  3:15   ` Alistair Francis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).