OSDN Git Service

vl: merge -accel processing into configure_accelerators
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Nov 2019 08:59:04 +0000 (09:59 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 17 Dec 2019 18:32:25 +0000 (19:32 +0100)
commit28a0961757fcf1354a8a8f4df9f40d75c5b633dc
treec4b753cc93ae5e6590006a96f6c2e1328d3ec405
parentdeda73e89f271e15044334ad6c0dcdae5341b71d
vl: merge -accel processing into configure_accelerators

The next step is to move the parsing of "-machine accel=..." into vl.c,
unifying it with the configure_accelerators() function that has just
been introduced.  This way, we will be able to desugar it into multiple
"-accel" options, without polluting accel/accel.c.

The CONFIG_TCG and CONFIG_KVM symbols are not available in vl.c, but
we can use accel_find instead to find their value at runtime.  Once we
know that the binary has one of TCG or KVM, the default accelerator
can be expressed simply as "tcg:kvm", because TCG never fails to initialize.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
accel/accel.c
include/sysemu/accel.h
vl.c