vl: avoid SIGSEGV on invalid [accel] configuration
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | vl: catch [accel] entry without acceleratorsoftmmu/ | +11 | 1 reply | |
| 2/4 | libqtest: split qtest_spawn_qemu functiontests/ | +55 | 2 replies | |
| 3/4 | libqtest: ensure waitpid() is only called oncetests/ | +20 | 1 reply | |
| 4/4 | readconfig-test: add test for accelerator configurationtests/ tests/ tests/ | +70 | 2 replies |
Reviews trailers per patch
2 of 4 patches have a Reviewed-by or Acked-by.
| Patch | Philippe Mathieu-Daudé | Thomas Huth |
|---|---|---|
| 1/4 | ||
| 2/4 | R-b | |
| 3/4 | R-b | |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/4] vl: avoid SIGSEGV on invalid [accel] configuration
While QEMU catches invalid -accel command line options:
$ qemu-system-x86_64 -accel foo=bar
Accelerators supported in QEMU binary:
tcg
xen
kvmthe same is not true of configuration files, which instead crash. Patch 1 is the trivial fix, but writing a test is a bit more complex: there are no existing testcases where the qtest socket would not even start. So the series does the required refactoring and cleanup before adding tests for both valid and invalid [accel] sections in patch 4.
Paolo Bonzini (4):
vl: catch [accel] entry without accelerator
libqtest: split qtest_spawn_qemu function
libqtest: ensure waitpid() is only called once
readconfig-test: add test for accelerator configuration
softmmu/vl.c | 15 +++- tests/qtest/libqtest.c | 160 +++++++++++++++++++++------------- tests/qtest/libqtest.h | 12 +++ tests/qtest/readconfig-test.c | 45 ++++++++-- 4 files changed, 156 insertions(+), 76 deletions(-)
Signature · 1 line
2.38.1