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>
Showing
- hw/core/machine.c 0 additions, 21 deletionshw/core/machine.c
- include/hw/boards.h 0 additions, 1 deletioninclude/hw/boards.h
- tests/arm-cpu-features.c 2 additions, 2 deletionstests/arm-cpu-features.c
- tests/bios-tables-test.c 8 additions, 8 deletionstests/bios-tables-test.c
- tests/boot-serial-test.c 2 additions, 2 deletionstests/boot-serial-test.c
- tests/cdrom-test.c 1 addition, 1 deletiontests/cdrom-test.c
- tests/libqtest.c 2 additions, 2 deletionstests/libqtest.c
- tests/migration-test.c 9 additions, 14 deletionstests/migration-test.c
- tests/pflash-cfi02-test.c 2 additions, 2 deletionstests/pflash-cfi02-test.c
- tests/pnv-xscom-test.c 2 additions, 2 deletionstests/pnv-xscom-test.c
- tests/prom-env-test.c 1 addition, 1 deletiontests/prom-env-test.c
- tests/pxe-test.c 1 addition, 1 deletiontests/pxe-test.c
- tests/vmgenid-test.c 1 addition, 1 deletiontests/vmgenid-test.c
- vl.c 54 additions, 39 deletionsvl.c
Loading
Please register or sign in to comment