Remove deprecated -balloon option
PATCH 1/1 Remove deprecated -balloon option
The "-balloon" option has been replaced by "-device virtio-balloon". It's been marked as deprecated since two releases, and nobody complained, so let's remove it now.
--- docs/virtio-balloon-stats.txt | 6 +++--- qemu-deprecated.texi | 5 ----- qemu-options.hx | 10 ---------- vl.c | 36 ------------------------------------ 4 files changed, 3 insertions(+), 54 deletions(-)
docs/virtio-balloon-stats.txt +3 -3
@@ -61,9 +61,9 @@ It's also important to note the following: respond to the request the timer will never be re-armed, which has the same effect as disabling polling -Here are a few examples. QEMU is started with '-balloon virtio', which -generates '/machine/peripheral-anon/device[1]' as the QOM path for the -balloon device. +Here are a few examples. QEMU is started with '-device virtio-balloon', +which generates '/machine/peripheral-anon/device[1]' as the QOM path for +the balloon device. Enable polling with 2 seconds interval:
qemu-deprecated.texi +0 -5
@@ -106,11 +106,6 @@ enabled via the ``-machine usb=on'' argument. The ``-nodefconfig`` argument is a synonym for ``-no-user-config``. -@subsection -balloon (since 2.12.0) - -The @option{--balloon virtio} argument has been superseded by -@option{--device virtio-balloon}. - @subsection -fsdev handle (since 2.12.0) The ``handle'' fsdev backend does not support symlinks and causes the 9p
qemu-options.hx +0 -10
@@ -454,16 +454,6 @@ modprobe i810_audio clocking=48000 @end example ETEXI -DEF("balloon", HAS_ARG, QEMU_OPTION_balloon, - "-balloon virtio[,addr=str]\n" - " enable virtio balloon device (deprecated)\n", QEMU_ARCH_ALL) -STEXI -@item -balloon virtio[,addr=@var{addr}] -@findex -balloon -Enable virtio balloon device, optionally with PCI address @var{addr}. This -option is deprecated, use @option{-device virtio-balloon} instead. -ETEXI - DEF("device", HAS_ARG, QEMU_OPTION_device, "-device driver[,prop[=value][,...]]\n" " add device (based on driver)\n"
vl.c +0 -36
@@ -2127,36 +2127,6 @@ static void parse_display(const char *p) } } -static int balloon_parse (const char *arg) -{ -QemuOpts *opts; - -warn_report ("This option is deprecated. " -"Use '--device virtio-balloon' to enable the balloon device." ); - -if (strcmp (arg,"none" ) ==0 ) { -return 0 ; - } - -if (!strncmp (arg,"virtio" ,6 )) { -if (arg[6 ] ==',' ) { -/* have params -> parse them */ - opts =qemu_opts_parse_noisily (qemu_find_opts ("device" ), arg +7 , - false); -if (!opts) -return -1 ; - }else { -/* create empty opts */ - opts =qemu_opts_create (qemu_find_opts ("device" ),NULL ,0 , - &error_abort); - } -qemu_opt_set (opts,"driver" ,"virtio-balloon" , &error_abort); -return 0 ; - } - -return -1 ; -} -char *qemu_find_file (int type,const char *name) {int i;
@@ -3659,12 +3629,6 @@ int main(int argc, char **argv, char **envp)case QEMU_OPTION_no_hpet: no_hpet =1 ;break ; -case QEMU_OPTION_balloon: -if (balloon_parse (optarg) <0 ) { -error_report ("unknown -balloon argument %s" , optarg); -exit (1 ); - } -break ;case QEMU_OPTION_no_reboot: no_reboot =1 ;break ;
Signature · 1 line
1.8.3.1
Quoted 11 lines · Thomas Huth
The "-balloon" option has been replaced by "-device virtio-balloon". It's been marked as deprecated since two releases, and nobody complained, so let's remove it now.
Signed-off-by Thomas Huth <[email protected]>--- docs/virtio-balloon-stats.txt | 6 +++--- qemu-deprecated.texi | 5 ----- qemu-options.hx | 10 ---------- vl.c | 36 ------------------------------------ 4 files changed, 3 insertions(+), 54 deletions(-)
Confirmed that this is no longer used by libvirt, as we assume we have new enough QEMU for -device
Quoted 6 lines
docs/virtio-balloon-stats.txt +0
-0
docs/virtio-balloon-stats.txt It's also important to note the following: · line 66
Quoted 9 lines
docs/virtio-balloon-stats.txt +3
-3@@ -61,9 +61,9 @@ It's also important to note the following: respond to the request the timer will never be re-armed, which has the same effect as disabling polling -Here are a few examples. QEMU is started with '-balloon virtio', which -generates '/machine/peripheral-anon/device[1]' as the QOM path for the -balloon device. +Here are a few examples. QEMU is started with '-device virtio-balloon', +which generates '/machine/peripheral-anon/device[1]' as the QOM path for +the balloon device.
We should try to get in the habit of changing the docs at the time we deprecate stuff. I keep forgetting todo this myself too :-)
Regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Quoted 111 lines · Thomas Huth
The "-balloon" option has been replaced by "-device virtio-balloon". It's been marked as deprecated since two releases, and nobody complained, so let's remove it now.
Signed-off-by Thomas Huth <[email protected]>--- docs/virtio-balloon-stats.txt | 6 +++--- qemu-deprecated.texi | 5 ----- qemu-options.hx | 10 ---------- vl.c | 36 ------------------------------------ 4 files changed, 3 insertions(+), 54 deletions(-)docs/virtio-balloon-stats.txt +3
-3@@ -61,9 +61,9 @@ It's also important to note the following: respond to the request the timer will never be re-armed, which has the same effect as disabling polling -Here are a few examples. QEMU is started with '-balloon virtio', which -generates '/machine/peripheral-anon/device[1]' as the QOM path for the -balloon device. +Here are a few examples. QEMU is started with '-device virtio-balloon', +which generates '/machine/peripheral-anon/device[1]' as the QOM path for +the balloon device. Enable polling with 2 seconds interval:qemu-deprecated.texi +0
-5@@ -106,11 +106,6 @@ enabled via the ``-machine usb=on'' argument. The ``-nodefconfig`` argument is a synonym for ``-no-user-config``. -@subsection -balloon (since 2.12.0) - -The @option{--balloon virtio} argument has been superseded by -@option{--device virtio-balloon}. - @subsection -fsdev handle (since 2.12.0) The ``handle'' fsdev backend does not support symlinks and causes the 9pqemu-options.hx +0
-10@@ -454,16 +454,6 @@ modprobe i810_audio clocking=48000 @end example ETEXI -DEF("balloon", HAS_ARG, QEMU_OPTION_balloon, - "-balloon virtio[,addr=str]\n" - " enable virtio balloon device (deprecated)\n", QEMU_ARCH_ALL) -STEXI -@item -balloon virtio[,addr=@var{addr}] -@findex -balloon -Enable virtio balloon device, optionally with PCI address @var{addr}. This -option is deprecated, use @option{-device virtio-balloon} instead. -ETEXI - DEF("device", HAS_ARG, QEMU_OPTION_device, "-device driver[,prop[=value][,...]]\n" " add device (based on driver)\n"vl.c +0
-30@@ -2127,36 +2127,6 @@ static void parse_display(const char *p) } } -static int balloon_parse (const char *arg) -{ -QemuOpts *opts; - -warn_report ("This option is deprecated. " -"Use '--device virtio-balloon' to enable the balloon device." ); - -if (strcmp (arg,"none" ) ==0 ) { -return 0 ; - } - -if (!strncmp (arg,"virtio" ,6 )) { -if (arg[6 ] ==',' ) { -/* have params -> parse them */ - opts =qemu_opts_parse_noisily (qemu_find_opts ("device" ), arg +7 , - false); -if (!opts) -return -1 ; - }else { -/* create empty opts */ - opts =qemu_opts_create (qemu_find_opts ("device" ),NULL ,0 , - &error_abort); - } -qemu_opt_set (opts,"driver" ,"virtio-balloon" , &error_abort); -return 0 ; - } - -return -1 ; -} -char *qemu_find_file (int type,const char *name) {int i;@@ -3659,12 +3629,6 @@ int main(int argc, char **argv, char **envp)case QEMU_OPTION_no_hpet: no_hpet =1 ;
vl.c int main(int argc, char **argv, char **envp) · line 3634
Quoted 10 lines
vl.c +0
-6break ; -case QEMU_OPTION_balloon: -if (balloon_parse (optarg) <0 ) { -error_report ("unknown -balloon argument %s" , optarg); -exit (1 ); - } -break ;case QEMU_OPTION_no_reboot: no_reboot =1 ;break ;
Please send a pull request yourself with all deprecation removals.
Paolo
Quoted 11 lines · On Tue, 21 Aug 2018 12:05:30 +0200 Thomas Huth <[email protected]> wrote:
The "-balloon" option has been replaced by "-device virtio-balloon". It's been marked as deprecated since two releases, and nobody complained, so let's remove it now.
Signed-off-by Thomas Huth <[email protected]>--- docs/virtio-balloon-stats.txt | 6 +++--- qemu-deprecated.texi | 5 ----- qemu-options.hx | 10 ---------- vl.c | 36 ------------------------------------ 4 files changed, 3 insertions(+), 54 deletions(-)
Quoted 5 lines · Thomas Huth
The "-balloon" option has been replaced by "-device virtio-balloon". It's been marked as deprecated since two releases, and nobody complained, so let's remove it now.
Signed-off-by Thomas Huth <[email protected]>
Quoted 117 lines
--- docs/virtio-balloon-stats.txt | 6 +++--- qemu-deprecated.texi | 5 ----- qemu-options.hx | 10 ---------- vl.c | 36 ------------------------------------ 4 files changed, 3 insertions(+), 54 deletions(-)docs/virtio-balloon-stats.txt +3
-3@@ -61,9 +61,9 @@ It's also important to note the following: respond to the request the timer will never be re-armed, which has the same effect as disabling polling -Here are a few examples. QEMU is started with '-balloon virtio', which -generates '/machine/peripheral-anon/device[1]' as the QOM path for the -balloon device. +Here are a few examples. QEMU is started with '-device virtio-balloon', +which generates '/machine/peripheral-anon/device[1]' as the QOM path for +the balloon device. Enable polling with 2 seconds interval:qemu-deprecated.texi +0
-5@@ -106,11 +106,6 @@ enabled via the ``-machine usb=on'' argument. The ``-nodefconfig`` argument is a synonym for ``-no-user-config``. -@subsection -balloon (since 2.12.0) - -The @option{--balloon virtio} argument has been superseded by -@option{--device virtio-balloon}. - @subsection -fsdev handle (since 2.12.0) The ``handle'' fsdev backend does not support symlinks and causes the 9pqemu-options.hx +0
-10@@ -454,16 +454,6 @@ modprobe i810_audio clocking=48000 @end example ETEXI -DEF("balloon", HAS_ARG, QEMU_OPTION_balloon, - "-balloon virtio[,addr=str]\n" - " enable virtio balloon device (deprecated)\n", QEMU_ARCH_ALL) -STEXI -@item -balloon virtio[,addr=@var{addr}] -@findex -balloon -Enable virtio balloon device, optionally with PCI address @var{addr}. This -option is deprecated, use @option{-device virtio-balloon} instead. -ETEXI - DEF("device", HAS_ARG, QEMU_OPTION_device, "-device driver[,prop[=value][,...]]\n" " add device (based on driver)\n"vl.c +0
-36@@ -2127,36 +2127,6 @@ static void parse_display(const char *p) } } -static int balloon_parse (const char *arg) -{ -QemuOpts *opts; - -warn_report ("This option is deprecated. " -"Use '--device virtio-balloon' to enable the balloon device." ); - -if (strcmp (arg,"none" ) ==0 ) { -return 0 ; - } - -if (!strncmp (arg,"virtio" ,6 )) { -if (arg[6 ] ==',' ) { -/* have params -> parse them */ - opts =qemu_opts_parse_noisily (qemu_find_opts ("device" ), arg +7 , - false); -if (!opts) -return -1 ; - }else { -/* create empty opts */ - opts =qemu_opts_create (qemu_find_opts ("device" ),NULL ,0 , - &error_abort); - } -qemu_opt_set (opts,"driver" ,"virtio-balloon" , &error_abort); -return 0 ; - } - -return -1 ; -} -char *qemu_find_file (int type,const char *name) {int i;@@ -3659,12 +3629,6 @@ int main(int argc, char **argv, char **envp)case QEMU_OPTION_no_hpet: no_hpet =1 ;break ; -case QEMU_OPTION_balloon: -if (balloon_parse (optarg) <0 ) { -error_report ("unknown -balloon argument %s" , optarg); -exit (1 ); - } -break ;case QEMU_OPTION_no_reboot: no_reboot =1 ;break ;Signature · 1 line
1.8.3.1
Quoted 111 lines · Thomas Huth
The "-balloon" option has been replaced by "-device virtio-balloon". It's been marked as deprecated since two releases, and nobody complained, so let's remove it now.
Signed-off-by Thomas Huth <[email protected]>--- docs/virtio-balloon-stats.txt | 6 +++--- qemu-deprecated.texi | 5 ----- qemu-options.hx | 10 ---------- vl.c | 36 ------------------------------------ 4 files changed, 3 insertions(+), 54 deletions(-)docs/virtio-balloon-stats.txt +3
-3@@ -61,9 +61,9 @@ It's also important to note the following: respond to the request the timer will never be re-armed, which has the same effect as disabling polling -Here are a few examples. QEMU is started with '-balloon virtio', which -generates '/machine/peripheral-anon/device[1]' as the QOM path for the -balloon device. +Here are a few examples. QEMU is started with '-device virtio-balloon', +which generates '/machine/peripheral-anon/device[1]' as the QOM path for +the balloon device. Enable polling with 2 seconds interval:qemu-deprecated.texi +0
-5@@ -106,11 +106,6 @@ enabled via the ``-machine usb=on'' argument. The ``-nodefconfig`` argument is a synonym for ``-no-user-config``. -@subsection -balloon (since 2.12.0) - -The @option{--balloon virtio} argument has been superseded by -@option{--device virtio-balloon}. - @subsection -fsdev handle (since 2.12.0) The ``handle'' fsdev backend does not support symlinks and causes the 9pqemu-options.hx +0
-10@@ -454,16 +454,6 @@ modprobe i810_audio clocking=48000 @end example ETEXI -DEF("balloon", HAS_ARG, QEMU_OPTION_balloon, - "-balloon virtio[,addr=str]\n" - " enable virtio balloon device (deprecated)\n", QEMU_ARCH_ALL) -STEXI -@item -balloon virtio[,addr=@var{addr}] -@findex -balloon -Enable virtio balloon device, optionally with PCI address @var{addr}. This -option is deprecated, use @option{-device virtio-balloon} instead. -ETEXI - DEF("device", HAS_ARG, QEMU_OPTION_device, "-device driver[,prop[=value][,...]]\n" " add device (based on driver)\n"vl.c +0
-30@@ -2127,36 +2127,6 @@ static void parse_display(const char *p) } } -static int balloon_parse (const char *arg) -{ -QemuOpts *opts; - -warn_report ("This option is deprecated. " -"Use '--device virtio-balloon' to enable the balloon device." ); - -if (strcmp (arg,"none" ) ==0 ) { -return 0 ; - } - -if (!strncmp (arg,"virtio" ,6 )) { -if (arg[6 ] ==',' ) { -/* have params -> parse them */ - opts =qemu_opts_parse_noisily (qemu_find_opts ("device" ), arg +7 , - false); -if (!opts) -return -1 ; - }else { -/* create empty opts */ - opts =qemu_opts_create (qemu_find_opts ("device" ),NULL ,0 , - &error_abort); - } -qemu_opt_set (opts,"driver" ,"virtio-balloon" , &error_abort); -return 0 ; - } - -return -1 ; -} -char *qemu_find_file (int type,const char *name) {int i;@@ -3659,12 +3629,6 @@ int main(int argc, char **argv, char **envp)case QEMU_OPTION_no_hpet: no_hpet =1 ;
vl.c int main(int argc, char **argv, char **envp) · line 3634
Quoted 10 lines
vl.c +0
-6break ; -case QEMU_OPTION_balloon: -if (balloon_parse (optarg) <0 ) { -error_report ("unknown -balloon argument %s" , optarg); -exit (1 ); - } -break ;case QEMU_OPTION_no_reboot: no_reboot =1 ;break ;
Nice to see this go.
Signature · 3 lines
Thanks, David / dhildenb