BuildSystem: Run kvm-ok to determine kvm access

This commit is contained in:
2024-06-10 15:54:09 +03:00
parent 530c259e71
commit 7bb1a3906d
2 changed files with 6 additions and 2 deletions

View File

@@ -60,7 +60,11 @@ run_bochs () {
$BANAN_SCRIPT_DIR/bochs.sh $@
}
if [[ -c /dev/kvm ]]; then
if type kvm-ok &> /dev/null; then
if kvm-ok &> /dev/null; then
QEMU_ACCEL="-accel kvm"
fi
elif [[ -c /dev/kvm ]]; then
if [[ -r /dev/kvm ]] && [[ -w /dev/kvm ]]; then
QEMU_ACCEL="-accel kvm"
else