On 05/02/2017 12:06 PM, Thomas Huth wrote: > 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.
google has 36000 hits for "--enable-kvm" and 18000 hits for "--accel kvm" So I assume this will affect a lot of setups for only a very small benefit. > > Signed-off-by: Thomas Huth <th...@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; >