mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
vl: configure accelerators from -accel options
Drop the "accel" property from MachineState, and instead desugar "-machine accel=" to a list of "-accel" options. This has a semantic change due to removing merge_lists from -accel. For example: - "-accel kvm -accel tcg" all but ignored "-accel kvm". This is a bugfix. - "-accel kvm -accel thread=single" ignored "thread=single", since it applied the option to KVM. Now it fails due to not specifying the accelerator on "-accel thread=single". - "-accel tcg -accel thread=single" chose single-threaded TCG, while now it will fail due to not specifying the accelerator on "-accel thread=single". Also, "-machine accel" and "-accel" become incompatible. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
@@ -215,9 +215,9 @@ static void test_machine(const void *data)
|
||||
* Make sure that this test uses tcg if available: It is used as a
|
||||
* fast-enough smoketest for that.
|
||||
*/
|
||||
qts = qtest_initf("%s %s -M %s,accel=tcg:kvm -no-shutdown "
|
||||
qts = qtest_initf("%s %s -M %s -no-shutdown "
|
||||
"-chardev file,id=serial0,path=%s "
|
||||
"-serial chardev:serial0 %s",
|
||||
"-serial chardev:serial0 -accel tcg -accel kvm %s",
|
||||
codeparam, code ? codetmp : "", test->machine,
|
||||
serialtmp, test->extra);
|
||||
if (code) {
|
||||
|
||||
Reference in New Issue
Block a user