From 2aaf6dd04f4fa4b157c36a33336e45b42346378e Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sat, 24 Jan 2026 14:18:51 +0000 Subject: [PATCH] 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 --- quickemu | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/quickemu b/quickemu index 62f2fda7b2..358be01139 100755 --- a/quickemu +++ b/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