|
@@ -2711,7 +2711,16 @@ static bool em_syscall_is_enabled(struct x86_emulate_ctxt *ctxt)
|
|
|
edx == X86EMUL_CPUID_VENDOR_AMDisbetterI_edx)
|
|
|
return true;
|
|
|
|
|
|
- /* default: (not Intel, not AMD), apply Intel's stricter rules... */
|
|
|
+ /* Hygon ("HygonGenuine") */
|
|
|
+ if (ebx == X86EMUL_CPUID_VENDOR_HygonGenuine_ebx &&
|
|
|
+ ecx == X86EMUL_CPUID_VENDOR_HygonGenuine_ecx &&
|
|
|
+ edx == X86EMUL_CPUID_VENDOR_HygonGenuine_edx)
|
|
|
+ return true;
|
|
|
+
|
|
|
+ /*
|
|
|
+ * default: (not Intel, not AMD, not Hygon), apply Intel's
|
|
|
+ * stricter rules...
|
|
|
+ */
|
|
|
return false;
|
|
|
}
|
|
|
|