qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Deprecate '-enable-kvm' and '-enable-hax' in favour of '-accel'
@ 2017-05-02 10:06 Thomas Huth
  2017-05-02 10:21 ` Daniel P. Berrange
  2017-05-02 10:32 ` Christian Borntraeger
  0 siblings, 2 replies; 22+ messages in thread
From: Thomas Huth @ 2017-05-02 10:06 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini, Vincent Palatin

The '-enable-...' option do not make too much sense: They do not
allow additional parameters, using '-accel xxx' is shorter than
'-enable-xxx' and we're also inconsistent here, since there is
no '-enable-xen' option available. So let's try to convince the
users to use '-accel xxx' instead.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 qemu-options.hx | 5 +++--
 vl.c            | 4 ++++
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/qemu-options.hx b/qemu-options.hx
index c7b1d2d..eb33286 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -3367,7 +3367,8 @@ STEXI
 @item -enable-kvm
 @findex -enable-kvm
 Enable KVM full virtualization support. This option is only available
-if KVM support is enabled when compiling.
+if KVM support is enabled when compiling. Note: This option is deprecated,
+please use @code{-accel kvm} instead.
 ETEXI
 
 DEF("enable-hax", 0, QEMU_OPTION_enable_hax, \
@@ -3378,7 +3379,7 @@ STEXI
 Enable HAX (Hardware-based Acceleration eXecution) support. This option
 is only available if HAX support is enabled when compiling. HAX is only
 applicable to MAC and Windows platform, and thus does not conflict with
-KVM.
+KVM. Note: This option is deprecated, please use @code{-accel hax} instead.
 ETEXI
 
 DEF("xen-domid", HAS_ARG, QEMU_OPTION_xen_domid,
diff --git a/vl.c b/vl.c
index d5e88fb..d5ec87e 100644
--- a/vl.c
+++ b/vl.c
@@ -3690,10 +3690,14 @@ int main(int argc, char **argv, char **envp)
                 }
                 break;
             case QEMU_OPTION_enable_kvm:
+                error_report("'-enable-kvm' is depreacted, please use "
+                             "'-accel kvm' instead");
                 olist = qemu_find_opts("machine");
                 qemu_opts_parse_noisily(olist, "accel=kvm", false);
                 break;
             case QEMU_OPTION_enable_hax:
+                error_report("'-enable-hax' is depreacted, please use "
+                             "'-accel hax' instead");
                 olist = qemu_find_opts("machine");
                 qemu_opts_parse_noisily(olist, "accel=hax", false);
                 break;
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2017-05-03  8:07 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-02 10:06 [Qemu-devel] [PATCH] Deprecate '-enable-kvm' and '-enable-hax' in favour of '-accel' Thomas Huth
2017-05-02 10:21 ` Daniel P. Berrange
2017-05-02 10:29   ` Thomas Huth
2017-05-02 10:32 ` Christian Borntraeger
2017-05-02 10:37   ` Thomas Huth
2017-05-02 10:48     ` Christian Borntraeger
2017-05-02 11:26       ` Thomas Huth
2017-05-02 11:59         ` Daniel P. Berrange
2017-05-02 12:07           ` Thomas Huth
2017-05-02 12:14             ` Thomas Huth
2017-05-02 12:16             ` Daniel P. Berrange
2017-05-02 12:38               ` Daniel P. Berrange
2017-05-02 12:46                 ` Thomas Huth
2017-05-02 13:22       ` Paolo Bonzini
2017-05-02 15:01         ` Markus Armbruster
2017-05-02 15:09           ` Paolo Bonzini
2017-05-02 15:53             ` Thomas Huth
2017-05-02 16:08               ` Paolo Bonzini
2017-05-02 16:19                 ` Thomas Huth
2017-05-02 16:22                   ` Paolo Bonzini
2017-05-03  8:07                     ` Markus Armbruster
2017-05-02 12:21     ` Christian Borntraeger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).