Removal of deprecated -no-kvm* options
cover Removal of deprecated -no-kvm* options
The -no-kvm* options are a remainder of the ancient "qemu-kvm" fork. They have never been officially documented in our qemu-doc, they have been marked as deprecated in the sources since a very long time, and we've marked them as deprecated in our qemu-doc since QEMU v2.10. So far I haven't seen any complaints that we should keep them, so it's time to remove these old parameters now.
Thomas Huth (4):
qemu-options: Remove remainders of the -tdf option
qemu-options: Remove deprecated -no-kvm-pit-reinjection
qemu-options: Remove deprecated -no-kvm-irqchip
qemu-options: Remove deprecated -no-kvm
qemu-doc.texi | 15 --------------- qemu-options.hx | 13 ------------- vl.c | 21 --------------------- 3 files changed, 49 deletions(-)
Signature · 1 line
1.8.3.1
PATCH 1/4 qemu-options: Remove remainders of the -tdf option
The -tdf options has been removed with d07aa197c5a1556449361a0cbb5108e2, but apparently I forgot to remove the corresponding two lines from qemu-options.hx.
--- qemu-options.hx | 3 --- 1 file changed, 3 deletions(-)
qemu-options.hx +0 -3
@@ -3924,9 +3924,6 @@ DEF("no-kvm-pit-reinjection", 0, QEMU_OPTION_no_kvm_pit_reinjection, HXCOMM Deprecated by -machine kernel_irqchip=on|off property DEF("no-kvm-irqchip", 0, QEMU_OPTION_no_kvm_irqchip, "", QEMU_ARCH_I386) -HXCOMM Deprecated (ignored) -DEF("tdf", 0, QEMU_OPTION_tdf,"", QEMU_ARCH_ALL) - DEF("msg", HAS_ARG, QEMU_OPTION_msg, "-msg timestamp[=on|off]\n" " change the format of messages\n"
Signature · 1 line
1.8.3.1
Re: [Qemu-devel] [PATCH 1/4] qemu-options: Remove remainders of the -tdf option
Quoted 14 lines · Thomas Huth
The -tdf options has been removed with
d07aa197c5a1556449361a0cbb5108e2, but apparently I forgot to remove the corresponding two lines from qemu-options.hx.Signed-off-by Thomas Huth <[email protected]>--- qemu-options.hx | 3 --- 1 file changed, 3 deletions(-)qemu-options.hx +0
-0
qemu-options.hx DEF("no-kvm-pit-reinjection", 0, QEMU_OPTION_no_kvm_pit_reinjection, · line 3929
Quoted 9 lines
qemu-options.hx +0
-3@@ -3924,9 +3924,6 @@ DEF("no-kvm-pit-reinjection", 0, QEMU_OPTION_no_kvm_pit_reinjection, HXCOMM Deprecated by -machine kernel_irqchip=on|off property DEF("no-kvm-irqchip", 0, QEMU_OPTION_no_kvm_irqchip, "", QEMU_ARCH_I386) -HXCOMM Deprecated (ignored) -DEF("tdf", 0, QEMU_OPTION_tdf,"", QEMU_ARCH_ALL) - DEF("msg", HAS_ARG, QEMU_OPTION_msg, "-msg timestamp[=on|off]\n" " change the format of messages\n"
Makes me wonder what happens when you specify --tdf. Aha: nothing. Why? main() passes unknown options to os_parse_cmd_args(), which happily ignores them. Its function comment "return 0 if option handled, -1 otherwise" is bogus. Needs cleanup. Separate patch, not necessarily in this series.
Suggest to mention in your commit message that --tdf is silently ignored. Feel free to also point out the need for cleanup there.
PATCH 2/4 qemu-options: Remove deprecated -no-kvm-pit-reinjection
In reply to Thomas HuthDeprecated since the beginning when it was added for compatibility with the ancient qemu-kvm fork of QEMU, and it even printed out the deprecation warning since right from the start (i.e. QEMU v1.3.0), so it's really time to remove this now.
--- qemu-doc.texi | 5 ----- qemu-options.hx | 4 ---- vl.c | 12 ------------ 3 files changed, 21 deletions(-)
qemu-doc.texi +0 -5
@@ -2786,11 +2786,6 @@ which is the default. @section System emulator command line arguments -@subsection -no-kvm-pit-reinjection (since 1.3.0) - -The ``-no-kvm-pit-reinjection'' argument is now a -synonym for setting ``-global kvm-pit.lost_tick_policy=discard''. - @subsection -no-kvm-irqchip (since 1.3.0) The ``-no-kvm-irqchip'' argument is now a synonym for
qemu-options.hx +0 -4
@@ -3917,10 +3917,6 @@ ETEXI HXCOMM Deprecated by -machine accel=tcg property DEF("no-kvm", 0, QEMU_OPTION_no_kvm, "", QEMU_ARCH_I386) -HXCOMM Deprecated by kvm-pit driver properties -DEF("no-kvm-pit-reinjection", 0, QEMU_OPTION_no_kvm_pit_reinjection, - "", QEMU_ARCH_I386) - HXCOMM Deprecated by -machine kernel_irqchip=on|off property DEF("no-kvm-irqchip", 0, QEMU_OPTION_no_kvm_irqchip, "", QEMU_ARCH_I386)
vl.c +0 -12
@@ -3741,18 +3741,6 @@ int main(int argc, char **argv, char **envp) olist =qemu_find_opts ("machine" );qemu_opts_parse_noisily (olist,"accel=tcg" , false);break ; -case QEMU_OPTION_no_kvm_pit_reinjection: { -static GlobalProperty kvm_pit_lost_tick_policy = { - .driver ="kvm-pit" , - .property ="lost_tick_policy" , - .value ="discard" , - }; - -warn_report ("deprecated, replaced by " -"-global kvm-pit.lost_tick_policy=discard" ); -qdev_prop_register_global (&kvm_pit_lost_tick_policy); -break ; - }case QEMU_OPTION_accel: accel_opts =qemu_opts_parse_noisily (qemu_find_opts ("accel" ), optarg, true);
Signature · 1 line
1.8.3.1
Re: [Qemu-devel] [PATCH 2/4] qemu-options: Remove deprecated -no-kvm-pit-reinjection
Quoted 6 lines · Thomas Huth
Deprecated since the beginning when it was added for compatibility with the ancient qemu-kvm fork of QEMU, and it even printed out the deprecation warning since right from the start (i.e. QEMU v1.3.0), so it's really time to remove this now.
Signed-off-by Thomas Huth <[email protected]>
PATCH 3/4 qemu-options: Remove deprecated -no-kvm-irqchip
In reply to Thomas HuthWe've never documented this option in our qemu-doc, so unless the users used qemu-kvm before, they never should never have been aware of this option. It's been marked as deprecated in the source code since a long time already, and officially marked as deprecated in the documentation since QEMU v2.10, so it should be fine to remove this now.
--- qemu-doc.texi | 5 ----- qemu-options.hx | 3 --- vl.c | 5 ----- 3 files changed, 13 deletions(-)
qemu-doc.texi +0 -5
@@ -2786,11 +2786,6 @@ which is the default. @section System emulator command line arguments -@subsection -no-kvm-irqchip (since 1.3.0) - -The ``-no-kvm-irqchip'' argument is now a synonym for -setting ``-machine kernel_irqchip=off''. - @subsection -no-kvm (since 1.3.0) The ``-no-kvm'' argument is now a synonym for setting
qemu-options.hx +0 -3
@@ -3917,9 +3917,6 @@ ETEXI HXCOMM Deprecated by -machine accel=tcg property DEF("no-kvm", 0, QEMU_OPTION_no_kvm, "", QEMU_ARCH_I386) -HXCOMM Deprecated by -machine kernel_irqchip=on|off property -DEF("no-kvm-irqchip", 0, QEMU_OPTION_no_kvm_irqchip, "", QEMU_ARCH_I386) - DEF("msg", HAS_ARG, QEMU_OPTION_msg, "-msg timestamp[=on|off]\n" " change the format of messages\n"
vl.c +0 -5
@@ -3185,11 +3185,6 @@ int main(int argc, char **argv, char **envp)exit (1 ); }switch (popt->index) { -case QEMU_OPTION_no_kvm_irqchip: { - olist =qemu_find_opts ("machine" ); -qemu_opts_parse_noisily (olist,"kernel_irqchip=off" , false); -break ; - }case QEMU_OPTION_cpu:/* hw initialization will check this */ cpu_model = optarg;
Signature · 1 line
1.8.3.1
Re: [Qemu-devel] [PATCH 3/4] qemu-options: Remove deprecated -no-kvm-irqchip
Quoted 7 lines · Thomas Huth
We've never documented this option in our qemu-doc, so unless the users used qemu-kvm before, they never should never have been aware of this option. It's been marked as deprecated in the source code since a long time already, and officially marked as deprecated in the documentation since QEMU v2.10, so it should be fine to remove this now.
Signed-off-by Thomas Huth <[email protected]>
With the commit message touched up like PATCH 4's:
PATCH 4/4 qemu-options: Remove deprecated -no-kvm
In reply to Thomas HuthWe've never documented this option in our qemu-doc, so unless the users used qemu-kvm before, they never should never have been aware of this option. It's been marked as deprecated in the source code since a long time already, and officially marked as deprecated in the documentation since QEMU v2.10, so it should be fine to remove this now.
--- qemu-doc.texi | 5 ----- qemu-options.hx | 3 --- vl.c | 4 ---- 3 files changed, 12 deletions(-)
qemu-doc.texi +0 -5
@@ -2786,11 +2786,6 @@ which is the default. @section System emulator command line arguments -@subsection -no-kvm (since 1.3.0) - -The ``-no-kvm'' argument is now a synonym for setting -``-machine accel=tcg''. - @subsection -vnc tls (since 2.5.0) The ``-vnc tls'' argument is now a synonym for setting
qemu-options.hx +0 -3
@@ -3914,9 +3914,6 @@ STEXI Enable FIPS 140-2 compliance mode. ETEXI -HXCOMM Deprecated by -machine accel=tcg property -DEF("no-kvm", 0, QEMU_OPTION_no_kvm, "", QEMU_ARCH_I386) - DEF("msg", HAS_ARG, QEMU_OPTION_msg, "-msg timestamp[=on|off]\n" " change the format of messages\n"
vl.c +0 -4
@@ -3732,10 +3732,6 @@ int main(int argc, char **argv, char **envp)exit (1 ); }break ; -case QEMU_OPTION_no_kvm: - olist =qemu_find_opts ("machine" ); -qemu_opts_parse_noisily (olist,"accel=tcg" , false); -break ;case QEMU_OPTION_accel: accel_opts =qemu_opts_parse_noisily (qemu_find_opts ("accel" ), optarg, true);
Signature · 1 line
1.8.3.1
Re: [Qemu-devel] [PATCH 4/4] qemu-options: Remove deprecated -no-kvm
Quoted 2 lines · Thomas Huth
We've never documented this option in our qemu-doc, so unless the users used qemu-kvm before, they never should never have been aware of this
You're serious about "never", aren't you? ;->
Quoted 1 line
option. It's been marked as deprecated in the source code since a long
s/since/for/
Quoted 4 lines
time already, and officially marked as deprecated in the documentation since QEMU v2.10, so it should be fine to remove this now.
Signed-off-by Thomas Huth <[email protected]>
With the commit message touched up: