-accel should list enabled accelerators
Status from this message: Queued, thanks!
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | vl: make -accel help to list enabled accelerators onlyvl.c | +17 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Qemu-devel] [PATCH 0/1] -accel should list enabled accelerators
On this series I changed the semantics of -accel help so that it shows only the accelerators enabled in the QEMU target binary. This behavior is now alike -cpu and -machine helps.
Another reason for this proposal is that I am working on an improvement of Avocado QEMU framework which should skip tests tagged with, e.g, "accel:tcg" if tcg is not enabled in the binary. And it seems the best approach to detect the presence (or not) of an accelerator is to query QEMU with -accel help.
Phillipe Mathieu-Daudé proposed a similar fix [1] but it was never merged. My patch is slightly different but it implements some decisions that seemed consensus at that time:
1. Do not display qtest. It's an internal only accelerator.
2. It should display those that have support on the target binary, regardless if they are not present on the host.
Example with this patch on x86_64 host (kvm not installed):
---
$ configure --enable-kvm --enable-xen --target-list="x86_64-softmmu ppc64-softmmu" $ x86_64-softmmu/qemu-system-x86_64 -accel help Accelerators supported in QEMU binary: tcg xen kvm $ ppc64-softmmu/qemu-system-ppc64 -accel help Accelerators supported in QEMU binary: tcg ---
Git: https://github.com/wainersm/qemu
Branch: accel_list
Travis: https://travis-ci.org/wainersm/qemu/builds/539366851
[1] https://www.mail-archive.com/[email protected]/msg491542.html
Wainer dos Santos Moschetta (1):
vl: make -accel help to list enabled accelerators only
vl.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-)
Signature · 1 line
2.21.0