Skip to contentSkip to conversation

aio / timers: De-document -clock

PATCH In review Markus Armbruster 3 participants 4 messages Oct 6, 2014 – Oct 27, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 aio / timers: De-document -clock

Commit 6d32717 "aio / timers: Remove alarm timers" has issues:

1. It silently ignores -clock for backward compatibility. Incompatible change: -clock help no longer terminates the program. Tolerable.

2. Failed to update option documentation. In particular, -help still advises users to try -clock help for available timers. Drop all documentation on -clock.

3. The 'query-alarm-clock' example in docs/writing-commands.txt no longer works, and needs to be redone. Can't do that right now, so I just stick in a FIXME.

---
 docs/writing-qmp-commands.txt |  2 ++
 qemu-options.hx               | 12 ++----------
 2 files changed, 4 insertions(+), 10 deletions(-)
docs/writing-qmp-commands.txt +2 -0
index 4d86c24..f3df206 100644
@@ -365,6 +365,8 @@ documentation for information about the other types.
 
 === User Defined Types ===
 
+FIXME This example needs to be redone after commit 6d32717
+
 For this example we will write the query-alarm-clock command, which returns
 information about QEMU's timer alarm. For more information about it, please
 check the "-clock" command-line option.
qemu-options.hx +2 -10
index 365b56c..778d0de 100644
@@ -2983,16 +2983,8 @@ Load the contents of @var{file} as an option ROM.
 This option is useful to load things like EtherBoot.
 ETEXI
 
-DEF("clock", HAS_ARG, QEMU_OPTION_clock, \
-    "-clock          force the use of the given methods for timer alarm.\n" \
-    "                To see what timers are available use '-clock help'\n",
-    QEMU_ARCH_ALL)
-STEXI
-@item -clock @var{method}
-@findex -clock
-Force the use of the given methods for timer alarm. To see what timers
-are available use @code{-clock help}.
-ETEXI
+HXCOMM Silently ignored for compatibility
+DEF("clock", HAS_ARG, QEMU_OPTION_clock, "", QEMU_ARCH_ALL)
 
 HXCOMM Options deprecated by -rtc
 DEF("localtime", 0, QEMU_OPTION_localtime, "", QEMU_ARCH_ALL)
Signature · 1 line
1.9.3
Reviewed-by on v1 1/1
#1 lore raw

OK by me - sorry about that.

Alex

Quoted 10 lines · Markus Armbruster

Commit 6d32717 "aio / timers: Remove alarm timers" has issues:

1. It silently ignores -clock for backward compatibility. Incompatible change: -clock help no longer terminates the program. Tolerable.

2. Failed to update option documentation. In particular, -help still advises users to try -clock help for available timers. Drop all documentation on -clock.

Quoted 5 lines

3. The 'query-alarm-clock' example in docs/writing-commands.txt no longer works, and needs to be redone. Can't do that right now, so I just stick in a FIXME.

Quoted 46 lines

---
docs/writing-qmp-commands.txt | 2 ++
qemu-options.hx | 12 ++----------

2 files changed, 4 insertions(+), 10 deletions(-)
docs/writing-qmp-commands.txt +0 -0
index 4d86c24..f3df206 100644
@@ -365,6 +365,8 @@ documentation for information about the other types.
 

=== User Defined Types ===

docs/writing-qmp-commands.txt +2 -0
+FIXME This example needs to be redone after commit 6d32717
+

For this example we will write the query-alarm-clock command, which returns information about QEMU's timer alarm. For more information about it, please check the "-clock" command-line option.

qemu-options.hx +0 -0
index 365b56c..778d0de 100644
@@ -2983,16 +2983,8 @@ Load the contents of @var{file} as an option ROM.

This option is useful to load things like EtherBoot. ETEXI

qemu-options.hx +2 -10
-DEF("clock", HAS_ARG, QEMU_OPTION_clock, \
-    "-clock          force the use of the given methods for timer alarm.\n" \
-    "                To see what timers are available use '-clock help'\n",
-    QEMU_ARCH_ALL)
-STEXI
-@item -clock @var{method}
-@findex -clock
-Force the use of the given methods for timer alarm. To see what timers
-are available use @code{-clock help}.
-ETEXI
+HXCOMM Silently ignored for compatibility
+DEF("clock", HAS_ARG, QEMU_OPTION_clock, "", QEMU_ARCH_ALL)

HXCOMM Options deprecated by -rtc
DEF("localtime", 0, QEMU_OPTION_localtime, "", QEMU_ARCH_ALL)

Signature · 1 line
1.9.3
Signature · 1 line
Alex Bligh
#2 lore raw
In reply to Markus Armbruster

Ping?

Quoted 56 lines · Markus Armbruster

Commit 6d32717 "aio / timers: Remove alarm timers" has issues:

1. It silently ignores -clock for backward compatibility. Incompatible change: -clock help no longer terminates the program. Tolerable.

2. Failed to update option documentation. In particular, -help still advises users to try -clock help for available timers. Drop all documentation on -clock.

3. The 'query-alarm-clock' example in docs/writing-commands.txt no longer works, and needs to be redone. Can't do that right now, so I just stick in a FIXME.

---
 docs/writing-qmp-commands.txt |  2 ++
 qemu-options.hx               | 12 ++----------
 2 files changed, 4 insertions(+), 10 deletions(-)
docs/writing-qmp-commands.txt +2 -0
index 4d86c24..f3df206 100644
@@ -365,6 +365,8 @@ documentation for information about the other types.
 
 === User Defined Types ===
 
+FIXME This example needs to be redone after commit 6d32717
+
 For this example we will write the query-alarm-clock command, which returns
 information about QEMU's timer alarm. For more information about it, please
 check the "-clock" command-line option.
qemu-options.hx +2 -10
index 365b56c..778d0de 100644
@@ -2983,16 +2983,8 @@ Load the contents of @var{file} as an option ROM.
 This option is useful to load things like EtherBoot.
 ETEXI
 
-DEF("clock", HAS_ARG, QEMU_OPTION_clock, \
-    "-clock          force the use of the given methods for timer alarm.\n" \
-    "                To see what timers are available use '-clock help'\n",
-    QEMU_ARCH_ALL)
-STEXI
-@item -clock @var{method}
-@findex -clock
-Force the use of the given methods for timer alarm. To see what timers
-are available use @code{-clock help}.
-ETEXI
+HXCOMM Silently ignored for compatibility
+DEF("clock", HAS_ARG, QEMU_OPTION_clock, "", QEMU_ARCH_ALL)
 
 HXCOMM Options deprecated by -rtc
 DEF("localtime", 0, QEMU_OPTION_localtime, "", QEMU_ARCH_ALL)
#3 lore raw
In reply to Markus Armbruster
Quoted 47 lines · Markus Armbruster

Commit 6d32717 "aio / timers: Remove alarm timers" has issues:

1. It silently ignores -clock for backward compatibility. Incompatible change: -clock help no longer terminates the program. Tolerable.

2. Failed to update option documentation. In particular, -help still advises users to try -clock help for available timers. Drop all documentation on -clock.

3. The 'query-alarm-clock' example in docs/writing-commands.txt no longer works, and needs to be redone. Can't do that right now, so I just stick in a FIXME.

---
 docs/writing-qmp-commands.txt |  2 ++
 qemu-options.hx               | 12 ++----------
 2 files changed, 4 insertions(+), 10 deletions(-)
docs/writing-qmp-commands.txt +2 -0
index 4d86c24..f3df206 100644
@@ -365,6 +365,8 @@ documentation for information about the other types.
 
 === User Defined Types ===
 
+FIXME This example needs to be redone after commit 6d32717
+
 For this example we will write the query-alarm-clock command, which returns
 information about QEMU's timer alarm. For more information about it, please
 check the "-clock" command-line option.
qemu-options.hx +0 -5
index 365b56c..778d0de 100644
@@ -2983,16 +2983,8 @@ Load the contents of @var{file} as an option ROM.
 This option is useful to load things like EtherBoot.
 ETEXI
 
-DEF("clock", HAS_ARG, QEMU_OPTION_clock, \
-    "-clock          force the use of the given methods for timer alarm.\n" \
-    "                To see what timers are available use '-clock help'\n",
-    QEMU_ARCH_ALL)
-STEXI

qemu-options.hx Load the contents of @var{file} as an option ROM. · line 2990

Quoted 10 lines
qemu-options.hx +2 -5
-@item -clock @var{method}
-@findex -clock
-Force the use of the given methods for timer alarm. To see what timers
-are available use @code{-clock help}.
-ETEXI
+HXCOMM Silently ignored for compatibility
+DEF("clock", HAS_ARG, QEMU_OPTION_clock, "", QEMU_ARCH_ALL)
 
 HXCOMM Options deprecated by -rtc
 DEF("localtime", 0, QEMU_OPTION_localtime, "", QEMU_ARCH_ALL)

I picked this up.

Paolo