All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] vl: avoid SIGSEGV on invalid [accel] configuration
@ 2023-01-17  8:07 Paolo Bonzini
  2023-01-17  8:07 ` [PATCH 1/4] vl: catch [accel] entry without accelerator Paolo Bonzini
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Paolo Bonzini @ 2023-01-17  8:07 UTC (permalink / raw)
  To: qemu-devel; +Cc: thuth

While QEMU catches invalid -accel command line options:

    $ qemu-system-x86_64 -accel foo=bar
    Accelerators supported in QEMU binary:
    tcg
    xen
    kvm

the 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(-)

-- 
2.38.1



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-01-31 15:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-17  8:07 [PATCH 0/4] vl: avoid SIGSEGV on invalid [accel] configuration Paolo Bonzini
2023-01-17  8:07 ` [PATCH 1/4] vl: catch [accel] entry without accelerator Paolo Bonzini
2023-01-17  8:10   ` Philippe Mathieu-Daudé
2023-01-17  8:07 ` [PATCH 2/4] libqtest: split qtest_spawn_qemu function Paolo Bonzini
2023-01-17  8:14   ` Philippe Mathieu-Daudé
2023-01-31 15:12   ` Thomas Huth
2023-01-17  8:07 ` [PATCH 3/4] libqtest: ensure waitpid() is only called once Paolo Bonzini
2023-01-31 15:14   ` Thomas Huth
2023-01-17  8:07 ` [PATCH 4/4] readconfig-test: add test for accelerator configuration Paolo Bonzini
2023-01-31 15:18   ` Thomas Huth
2023-01-31 15:20     ` Richard Henderson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.