1
0
mirror of https://passt.top/passt synced 2024-06-21 02:27:05 +00:00
passt/test/distro
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
..
debian Invoke specific qemu-system-* binaries 2022-07-14 01:32:42 +02:00
fedora Invoke specific qemu-system-* binaries 2022-07-14 01:32:42 +02:00
opensuse Invoke specific qemu-system-* binaries 2022-07-14 01:32:42 +02:00
ubuntu Invoke specific qemu-system-* binaries 2022-07-14 01:32:42 +02:00