doc: add comments about improving detection of running in a VM

This commit is contained in:
Martin Wimpress 2024-05-16 14:06:24 +01:00 committed by Martin Wimpress
parent 1b6cf0ad69
commit 023a7355db
1 changed files with 4 additions and 1 deletions

View File

@ -322,7 +322,10 @@ function configure_cpu() {
QEMU_ACCEL="tcg" QEMU_ACCEL="tcg"
fi fi
# Detect if running in a VM # TODO: More robust detection of running in a VM
# - macOS check for CPU flag: vmx
# - Linux AMD check for CPU flag: svm
# - Linux Intel check for CPU flag: vmx
case ${MANUFACTURER,,} in case ${MANUFACTURER,,} in
qemu|virtualbox) CPU_MODEL="qemu64" qemu|virtualbox) CPU_MODEL="qemu64"
QEMU_ACCEL="tcg" QEMU_ACCEL="tcg"