qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC PATCH 0/2] tests: avoid kvm accel when it is not accessible
@ 2017-08-15 16:39 Philippe Mathieu-Daudé
  2017-08-15 16:39 ` [Qemu-devel] [RFC PATCH 1/2] libqtest: add qtest_accel() to avoid warnings when kvm is not available Philippe Mathieu-Daudé
  2017-08-15 16:39 ` [Qemu-devel] [PATCH 2/2] tests: use qtest_accel() Philippe Mathieu-Daudé
  0 siblings, 2 replies; 10+ messages in thread
From: Philippe Mathieu-Daudé @ 2017-08-15 16:39 UTC (permalink / raw)
  To: Michael S . Tsirkin, Thomas Huth, Markus Armbruster, Eric Blake
  Cc: Philippe Mathieu-Daudé, qemu-devel, Paolo Bonzini

This series reduce warnings when kvm is not accessible:

- kernel without kvm:

    # make check-qtest-x86_64
      GTESTER check-qtest-x86_64
    Could not access KVM kernel module: No such device
    qemu-system-x86_64: failed to initialize KVM: No such device
    qemu-system-x86_64: Back to tcg accelerator
    [... many of these ...]

- tests ran as user:

    $ make check-qtest-x86_64
      GTESTER check-qtest-x86_64
    Could not access KVM kernel module: Permission denied
    qemu-system-x86_64: failed to initialize KVM: Permission denied
    qemu-system-x86_64: Back to tcg accelerator
    [... many of these ...]

Once applied:

    $ make check-qtest-x86_64
      GTESTER check-qtest-x86_64
    kvm not accessible, using tcg
    kvm not accessible, using tcg
    kvm not accessible, using tcg
    kvm not accessible, using tcg
    kvm not accessible, using tcg

Philippe Mathieu-Daudé (2):
  libqtest: add qtest_accel() to avoid warnings when kvm is not
    available
  tests: use qtest_accel()

 tests/libqtest.h         |  8 ++++++++
 tests/bios-tables-test.c |  2 +-
 tests/boot-serial-test.c |  5 +++--
 tests/libqtest.c         | 18 ++++++++++++++++++
 tests/postcopy-test.c    | 10 ++++++----
 tests/pxe-test.c         |  5 +++--
 tests/vmgenid-test.c     |  4 ++--
 7 files changed, 41 insertions(+), 11 deletions(-)

-- 
2.14.1

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

end of thread, other threads:[~2017-08-15 19:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-15 16:39 [Qemu-devel] [RFC PATCH 0/2] tests: avoid kvm accel when it is not accessible Philippe Mathieu-Daudé
2017-08-15 16:39 ` [Qemu-devel] [RFC PATCH 1/2] libqtest: add qtest_accel() to avoid warnings when kvm is not available Philippe Mathieu-Daudé
2017-08-15 18:13   ` Eric Blake
2017-08-15 18:27     ` Philippe Mathieu-Daudé
2017-08-15 18:39       ` Peter Maydell
2017-08-15 19:10         ` Philippe Mathieu-Daudé
2017-08-15 18:40       ` Eric Blake
2017-08-15 18:51         ` Eric Blake
2017-08-15 19:08         ` Philippe Mathieu-Daudé
2017-08-15 16:39 ` [Qemu-devel] [PATCH 2/2] tests: use qtest_accel() Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).