hw/i386/pc.c: add description for fd-bootchk option
PATCH 1/1 hw/i386/pc.c: add description for fd-bootchk option
The 'fd-bootchk' option for pc and q35 machines currently lacks of description in the help output. This makes it difficult for users to understand the purpose of the command.
This commit solve this issue by adding description using object_class_property_set_description() in hw/i386/pc.c, adding the the description message for the option 'fd-bootchk'.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3193
--- hw/i386/pc.c | 2 ++ 1 file changed, 2 insertions(+)
hw/i386/pc.c +2 -0
@@ -1822,6 +1822,8 @@ static void pc_machine_class_init(ObjectClass *oc, const void *data)object_class_property_add_bool (oc,"fd-bootchk" , pc_machine_get_fd_bootchk, pc_machine_set_fd_bootchk); +object_class_property_set_description (oc,"fd-bootchk" , +"Enable/disable floppy disk boot check" );#if defined(CONFIG_IGVM ) object_class_property_add_link(oc, "igvm-cfg",
Signature · 1 line
2.43.0
Quoted 20 lines · Choon Keong
The 'fd-bootchk' option for pc and q35 machines currently lacks of description in the help output. This makes it difficult for users to understand the purpose of the command.
This commit solve this issue by adding description using
object_class_property_set_description()inhw/i386/pc.c, adding the the description message for the option 'fd-bootchk'.Suggested-by Peter Maydell <[email protected]>Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3193
Signed-off-by Choon Keong <[email protected]>--- hw/i386/pc.c | 2 ++ 1 file changed, 2 insertions(+)hw/i386/pc.c +0
-0
hw/i386/pc.c static void pc_machine_class_init(ObjectClass *oc, const void *data) · line 1826
Quoted 5 lines
hw/i386/pc.c +2
-0@@ -1822,6 +1822,8 @@ static void pc_machine_class_init(ObjectClass *oc, const void *data)object_class_property_add_bool (oc,"fd-bootchk" , pc_machine_get_fd_bootchk, pc_machine_set_fd_bootchk); +object_class_property_set_description (oc,"fd-bootchk" , +"Enable/disable floppy disk boot check" );
I'd maybe use a text based on the description from "-no-fd-bootchk" in the qemu-opions.hx file:
"Enable/disable boot signature checking for floppy disks in BIOS."
?
... so that it is clear that this influences the behaviour in the BIOS.
Thomas
Thank you Thomas, this is a very helpful suggestion. I will change it and resend the patch for review shortly.
Best regards,
Choon Keong.
Quoted 39 lines · Thomas Huth
Quoted 20 lines · Choon Keong
The 'fd-bootchk' option for pc and q35 machines currently lacks of description in the help output. This makes it difficult for users to understand the purpose of the command.
This commit solve this issue by adding description using
object_class_property_set_description()inhw/i386/pc.c, adding the the description message for the option 'fd-bootchk'.Suggested-by Peter Maydell <[email protected]>Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3193
Signed-off-by Choon Keong <[email protected]>--- hw/i386/pc.c | 2 ++ 1 file changed, 2 insertions(+)hw/i386/pc.c +0
-0hw/i386/pc.c static void pc_machine_class_init(ObjectClass *oc, const void *data) · line 1826
Quoted 5 lines
hw/i386/pc.c +2
-0@@ -1822,6 +1822,8 @@ static void pc_machine_class_init(ObjectClass *oc, const void *data)object_class_property_add_bool (oc,"fd-bootchk" , pc_machine_get_fd_bootchk, pc_machine_set_fd_bootchk); +object_class_property_set_description (oc,"fd-bootchk" , +"Enable/disable floppy disk boot check" );I'd maybe use a text based on the description from "-no-fd-bootchk" in the qemu-opions.hx file:
"Enable/disable boot signature checking for floppy disks in BIOS."
?
... so that it is clear that this influences the behaviour in the BIOS.
Thomas