Skip to content

Commit e86d998

Browse files
committed
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>
1 parent e3fb8c3 commit e86d998

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

quickemu

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,22 @@ function configure_cpu() {
383383
echo "ERROR! Intel VT-x support is required."
384384
exit 1
385385
fi
386-
elif [ "${HOST_CPU_VENDOR}" == "AuthenticAMD" ]; then
386+
elif [ "${HOST_CPU_VENDOR}" == "AuthenticAMD" ] || [ "${HOST_CPU_VENDOR}" == "HygonGenuine" ]; then
387+
# HygonGenuine is Chinese AMD-compatible CPUs (Hygon Dhyana)
387388
if ! check_cpu_flag svm; then
388389
echo "ERROR! AMD SVM support is required."
389390
exit 1
390391
fi
392+
elif [ "${ARCH_HOST}" == "aarch64" ] || [ "${ARCH_HOST}" == "arm64" ]; then
393+
# ARM hosts running native ARM guests with hardware acceleration (HVF on macOS, KVM on Linux)
394+
# ARM processors don't have x86-specific virtualisation flags (VT-x/SVM) to check
395+
# Cross-architecture guests (x86 on ARM) use TCG and skip this validation block entirely
396+
# No validation needed here - ARM virtualisation support is handled by the hypervisor
397+
true
398+
else
399+
# Unknown CPU vendor - could be future/custom CPUs
400+
echo "WARNING! Unknown CPU vendor '${HOST_CPU_VENDOR}' - cannot verify virtualisation support."
401+
echo " If virtualisation fails, check your CPU supports hardware virtualisation and it's enabled in firmware."
391402
fi
392403
fi
393404

0 commit comments

Comments
 (0)