qdev: Improve a few more PropertyInfo @description members
authorMarkus Armbruster <armbru@redhat.com>
Thu, 27 Feb 2025 08:56:01 +0000 (09:56 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 6 Mar 2025 09:33:05 +0000 (10:33 +0100)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20250227085601.4140852-7-armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
hw/block/xen-block.c
hw/core/qdev-properties-system.c
hw/core/qdev-properties.c
hw/s390x/ccw-device.c
target/sparc/cpu.c

index 7c9d1b658c2f9f3b1790b52965196cd57eb62fca..2098286b5f96b0888c08e3e8ddbd324303787946 100644 (file)
@@ -662,7 +662,7 @@ invalid:
  */
 static const PropertyInfo xen_block_prop_vdev = {
     .type  = "str",
-    .description = "Virtual Disk specifier: d*p*/xvd*/hd*/sd*",
+    .description = "Virtual Disk specifier (d*p*/xvd*/hd*/sd*)",
     .get = xen_block_get_vdev,
     .set = xen_block_set_vdev,
 };
index 6d7dcf368d310e98276da60a5c93d68a3450e7d4..a7dde73c29bf91d99083d5396b940ec30d72bc7f 100644 (file)
@@ -985,7 +985,7 @@ inval:
 
 const PropertyInfo qdev_prop_pci_host_devaddr = {
     .type = "str",
-    .description = "Address (bus/device/function) of "
+    .description = "Address (bus:device.function) of "
                    "the host device, example: 04:10.0",
     .get = get_pci_host_devaddr,
     .set = set_pci_host_devaddr,
index 5a801057dbad6dd5756608825366ee0fdf4252dd..c04df3b337ae1841908c583da83d6082b7bb24a0 100644 (file)
@@ -247,6 +247,7 @@ static void set_bool(Object *obj, Visitor *v, const char *name, void *opaque,
 
 const PropertyInfo qdev_prop_bool = {
     .type  = "bool",
+    .description = "on/off",
     .get   = get_bool,
     .set   = set_bool,
     .set_default_value = set_default_value_bool,
index 1d4b8ea35c5e475580fa4e8fab8f0e89a858081f..1ea9934f6cee9f7f19be17aafea0179245acf0b5 100644 (file)
@@ -75,8 +75,8 @@ static void ccw_device_set_loadparm(Object *obj, Visitor *v,
 
 const PropertyInfo ccw_loadparm = {
     .type  = "str",
-    .description = "Up to 8 chars in set of [A-Za-z0-9. ] to pass"
-            " to the guest loader/kernel",
+    .description = "Up to 8 chars in set of [A-Za-z0-9. ] to select"
+            " a guest kernel",
     .get = ccw_device_get_loadparm,
     .set = ccw_device_set_loadparm,
 };
index c8ea35be7650578e4b24cd5d636b903bde30950a..f0613f8a8e9a3e5930562dc1b8200d84a838c5b0 100644 (file)
@@ -939,6 +939,7 @@ static void sparc_set_nwindows(Object *obj, Visitor *v, const char *name,
 
 static const PropertyInfo qdev_prop_nwindows = {
     .type  = "int",
+    .description = "Number of register windows",
     .get   = sparc_get_nwindows,
     .set   = sparc_set_nwindows,
 };