You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/system
Philippe Mathieu-Daudé 964d2a0cf8 system: Select HVF by default when no other accelerator is available
When testing with a HVF-only binary, we get:

   3/12 qemu:func-quick+func-aarch64 / func-aarch64-version                                      ERROR            0.29s   exit status 1
  stderr:
  Traceback (most recent call last):
    File "tests/functional/test_version.py", line 22, in test_qmp_human_info_version
      self.vm.launch()
    File "machine/machine.py", line 461, in launch
      raise VMLaunchFailure(
  qemu.machine.machine.VMLaunchFailure: ConnectError: Failed to establish session: EOFError
      Exit code: 1
      Command: build/qemu-system-aarch64 -display none -vga none -chardev socket,id=mon,fd=5 -mon chardev=mon,mode=control -machine none -nodefaults
      Output: qemu-system-aarch64: No accelerator selected and no default accelerator available

Fix by checking for HVF in configure_accelerators() and using
it by default when no other accelerator is available.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20241203094232.62232-1-philmd@linaro.org>
21 hours ago
..
arch_init.c
async-teardown.c qemu/osdep: Add excluded fd parameter to qemu_close_all_open_fd() 4 months ago
balloon.c balloon: Fix a misleading error message 1 year ago
bootdevice.c system/bootdevice: Don't unregister reset handler in restore_boot_order() 9 months ago
cpu-timers.c migration: Move cpu-throttle.c from system to migration 1 month ago
cpus.c qmp: Fix higher half vaddrs for [p]memsave 4 months ago
datadir.c
device_tree-stub.c kconfig: allow compiling out QEMU device tree code per target 7 months ago
device_tree.c kconfig: allow compiling out QEMU device tree code per target 7 months ago
dirtylimit.c migration: migration_thread_is_self 9 months ago
dma-helpers.c system/dma-helpers.c: Move trace events to system/trace-events 2 weeks ago
globals.c vl.c: Remove pxa2xx-specific -portrait and -rotate options 2 months ago
ioport.c exec/ioport: Add portio_list_set_enabled() 10 months ago
main.c softmmu: pass the main loop status to gdb "Wxx" packet 1 year ago
memory.c memory: notify hypervisor of all eventfds during listener (de)registration 2 months ago
memory_ldst.c.inc system: Move memory_ldst.c.inc to system 10 months ago
memory_mapping.c system/memory_mapping: make range overlap check more readable 4 months ago
meson.build migration: Move cpu-throttle.c from system to migration 1 month ago
physmem.c softmmu/physmem.c: Keep transaction attribute in address_space_map() 3 months ago
qdev-monitor.c qdev-monitor: avoid QemuOpts in QMP device_add 1 week ago
qemu-seccomp.c seccomp: Remove check for CRIS host 3 months ago
qtest.c qtest: move qtest_{get, set}_virtual_clock to accel/qtest/qtest.c 5 months ago
rtc.c system: replace assert(0) with g_assert_not_reached() 3 months ago
runstate-action.c
runstate-hmp-cmds.c
runstate.c reset: Use ResetType for qemu_devices_reset() and MachineClass::reset() 2 months ago
tpm-hmp-cmds.c
tpm.c
trace-events system/dma-helpers.c: Move trace events to system/trace-events 2 weeks ago
trace.h
vl.c system: Select HVF by default when no other accelerator is available 21 hours ago
watchpoint.c system/watchpoint: Move TCG specific code to accel/tcg/ 11 months ago