]> git.proxmox.com Git - mirror_qemu.git/commit
vl: configure accelerators from -accel options
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Nov 2019 09:10:47 +0000 (10:10 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 17 Dec 2019 18:32:26 +0000 (19:32 +0100)
commit6f6e1698a68ceb49e57676528612f22eaf2c16c3
treef6d9b5d646eaec9965450b044957b02ebf827182
parente5db4bd863c8fdf155b003446b98a7aec65a931c
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>
14 files changed:
hw/core/machine.c
include/hw/boards.h
tests/arm-cpu-features.c
tests/bios-tables-test.c
tests/boot-serial-test.c
tests/cdrom-test.c
tests/libqtest.c
tests/migration-test.c
tests/pflash-cfi02-test.c
tests/pnv-xscom-test.c
tests/prom-env-test.c
tests/pxe-test.c
tests/vmgenid-test.c
vl.c