qemu-options: Mark -virtioconsole as deprecated
PATCH v2 1/1 qemu-options: Mark -virtioconsole as deprecated
The qemu-doc already states that this option is only maintained for backward compatibility and "-device virtconsole" should be used instead. So let's take the next step and mark this option officially as deprecated.
Reviewed-by Markus Armbruster <[email protected]>
Signed-off-by Thomas Huth <[email protected]>
---
v2:
- Addressed Markus' review feedback from v1
qemu-doc.texi | 5 +++++ qemu-options.hx | 5 +---- vl.c | 2 ++ 3 files changed, 8 insertions(+), 4 deletions(-)
qemu-doc.texi +5 -0
@@ -2931,6 +2931,11 @@ The @code{-localtime} option has been replaced by @code{-rtc base=localtime}. The @code{-startdate} option has been replaced by @code{-rtc base=@var{date}}. +@subsection -virtioconsole (since 2.13.0) + +Option @option{-virtioconsole} has been replaced by +@option{-device virtconsole}. + @section qemu-img command line arguments @subsection convert -s (since 2.0.0)
qemu-options.hx +1 -4
@@ -3675,10 +3675,7 @@ STEXI @item -virtioconsole @var{c} @findex -virtioconsole Set virtio console. - -This option is maintained for backward compatibility. - -Please use @code{-device virtconsole} for the new way of invocation. +This option is deprecated, please use @option{-device virtconsole} instead. ETEXI DEF("show-cursor", 0, QEMU_OPTION_show_cursor, \
vl.c +2 -0
@@ -3598,6 +3598,8 @@ int main(int argc, char **argv, char **envp) }break ;case QEMU_OPTION_virtiocon: +warn_report ("This option is deprecated, " +"use '-device virtconsole' instead" );add_device_config (DEV_VIRTCON , optarg); default_virtcon =0 ;if (strncmp (optarg,"mon:" ,4 ) ==0 ) {
Signature · 1 line
1.8.3.1
Paolo Bonzini
AppliedQuoted 54 lines · Thomas Huth
The qemu-doc already states that this option is only maintained for backward compatibility and "-device virtconsole" should be used instead. So let's take the next step and mark this option officially as deprecated.
Reviewed-by Markus Armbruster <[email protected]>Signed-off-by Thomas Huth <[email protected]>---
v2:
- Addressed Markus' review feedback from v1qemu-doc.texi | 5 +++++ qemu-options.hx | 5 +---- vl.c | 2 ++ 3 files changed, 8 insertions(+), 4 deletions(-)qemu-doc.texi +5
-0@@ -2931,6 +2931,11 @@ The @code{-localtime} option has been replaced by @code{-rtc base=localtime}. The @code{-startdate} option has been replaced by @code{-rtc base=@var{date}}. +@subsection -virtioconsole (since 2.13.0) + +Option @option{-virtioconsole} has been replaced by +@option{-device virtconsole}. + @section qemu-img command line arguments @subsection convert -s (since 2.0.0)qemu-options.hx +1
-4@@ -3675,10 +3675,7 @@ STEXI @item -virtioconsole @var{c} @findex -virtioconsole Set virtio console. - -This option is maintained for backward compatibility. - -Please use @code{-device virtconsole} for the new way of invocation. +This option is deprecated, please use @option{-device virtconsole} instead. ETEXI DEF("show-cursor", 0, QEMU_OPTION_show_cursor, \vl.c +0
-0
vl.c int main(int argc, char **argv, char **envp) · line 3605
Quoted 8 lines
vl.c +2
-0@@ -3598,6 +3598,8 @@ int main(int argc, char **argv, char **envp) }break ;case QEMU_OPTION_virtiocon: +warn_report ("This option is deprecated, " +"use '-device virtconsole' instead" );add_device_config (DEV_VIRTCON , optarg); default_virtcon =0 ;if (strncmp (optarg,"mon:" ,4 ) ==0 ) {
Queued, thanks.
Paolo