fix(quickemu): accept HygonGenuine CPUs and skip x86 checks on ARM hosts
- Treat HygonGenuine as AMD-compatible and check svm for AMD-style hosts - On aarch64/arm64 hosts, skip x86-specific VT-x/SVM validation (HVF/KVM handled by hypervisor) - Add warning for unknown CPU vendors to aid troubleshooting Signed-off-by: Martin Wimpress <martin@wimpress.org>
This commit is contained in:
parent
e3fb8c3372
commit
e86d9980cd
13
quickemu
13
quickemu
|
|
@ -383,11 +383,22 @@ function configure_cpu() {
|
|||
echo "ERROR! Intel VT-x support is required."
|
||||
exit 1
|
||||
fi
|
||||
elif [ "${HOST_CPU_VENDOR}" == "AuthenticAMD" ]; then
|
||||
elif [ "${HOST_CPU_VENDOR}" == "AuthenticAMD" ] || [ "${HOST_CPU_VENDOR}" == "HygonGenuine" ]; then
|
||||
# HygonGenuine is Chinese AMD-compatible CPUs (Hygon Dhyana)
|
||||
if ! check_cpu_flag svm; then
|
||||
echo "ERROR! AMD SVM support is required."
|
||||
exit 1
|
||||
fi
|
||||
elif [ "${ARCH_HOST}" == "aarch64" ] || [ "${ARCH_HOST}" == "arm64" ]; then
|
||||
# ARM hosts running native ARM guests with hardware acceleration (HVF on macOS, KVM on Linux)
|
||||
# ARM processors don't have x86-specific virtualisation flags (VT-x/SVM) to check
|
||||
# Cross-architecture guests (x86 on ARM) use TCG and skip this validation block entirely
|
||||
# No validation needed here - ARM virtualisation support is handled by the hypervisor
|
||||
true
|
||||
else
|
||||
# Unknown CPU vendor - could be future/custom CPUs
|
||||
echo "WARNING! Unknown CPU vendor '${HOST_CPU_VENDOR}' - cannot verify virtualisation support."
|
||||
echo " If virtualisation fails, check your CPU supports hardware virtualisation and it's enabled in firmware."
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue