1
0
mirror of https://passt.top/passt synced 2024-07-04 00:42:41 +00:00
passt/test/lib
David Gibson 7bcc5930a6 Invoke specific qemu-system-* binaries
A lot of tests and examples invoke qemu with the command "kvm".  However,
as far as I can tell, "kvm" being aliased to the appropriate qemu system
binary is Debian specific.  The binary names from qemu upstream -
qemu-system-$ARCH - also aren't universal, but they are more common (they
should be good for both Debian and Fedora at least).

In order to still get KVM acceleration when available, we use the option
"-M accel=kvm:tcg" to tell qemu to try using either KVM or TCG in that
order

A number of the places we invoked "kvm" are expecting specifically an x86
guest, and so it's also safer to explicitly invoke qemu-system-x86_64.

Some others appear to be independent of the target arch (just wanting the
same arch as the host to allow KVM acceleration).  Although I suspect there
may be more subtle x86 specific options in the qemu command lines, attempt
to preserve arch independence by using $(uname -m).

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2022-07-14 01:32:42 +02:00
..
layout test: Add demo for Podman with pasta 2022-02-22 18:34:44 +01:00
perf_report test/lib: Consistent cols, rows, poster attributes for asciinema player 2022-04-07 11:44:35 +02:00
setup Invoke specific qemu-system-* binaries 2022-07-14 01:32:42 +02:00
term tests: Don't check exit code for every command in demo mode 2022-05-19 15:24:22 +02:00
test tests: Don't count number of test units for demos 2022-05-19 15:24:19 +02:00
util test: Drop debugging left-overs in lib/util 2021-10-14 13:15:12 +02:00
video test/lib: Consistent cols, rows, poster attributes for asciinema player 2022-04-07 11:44:35 +02:00