summary refs log tree commit diff stats
path: root/chardev/char-socket.c
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2018-07-02 18:56:06 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2018-07-06 18:39:19 +0200
commit02693cc4f4aacf82cb73559dfa9af76ce4b13d11 (patch)
treea84675ee01579284a8bb24d063853f84806e371c /chardev/char-socket.c
parent70da30483e78b501ff4b3a090f26c08abd0f7a7f (diff)
downloadfocaccia-qemu-02693cc4f4aacf82cb73559dfa9af76ce4b13d11.tar.gz
focaccia-qemu-02693cc4f4aacf82cb73559dfa9af76ce4b13d11.zip
i386: fix '-cpu ?' output for host cpu type
Since commit d6dcc5583e7, '-cpu ?' shows the description of the
X86_CPU_TYPE_NAME("max") for the host CPU model:

Enables all features supported by the accelerator in the current host

instead of the expected:

KVM processor with all supported host features

or

HVF processor with all supported host features

This is caused by the early use of kvm_enabled() and hvf_enabled() in
a class_init function. Since the accelerator isn't configured yet, both
helpers return false unconditionally.

A QEMU binary will only be compiled with one of these accelerators, not
both. The appropriate description can thus be decided at build time.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <153055056654.212317.4697363278304826913.stgit@bahia.lan>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'chardev/char-socket.c')
0 files changed, 0 insertions, 0 deletions