[Qemu-devel] [RFC PATCH 0/2] tests: avoid kvm accel when it is not accessible

Philippe Mathieu-Daudé posted 2 patches 6 years, 7 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20170815163959.6632-1-f4bug@amsat.org
Test FreeBSD passed
Test checkpatch passed
Test docker passed
Test s390x passed
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(-)
[Qemu-devel] [RFC PATCH 0/2] tests: avoid kvm accel when it is not accessible
Posted by Philippe Mathieu-Daudé 6 years, 7 months ago
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