ARM builds are breaking because Hostinfo_HypervisorPresent is defined
but not used [-Werror=unused-function]. This change defines
Hostinfo_HypervisorPresent only for i386 and x86_64 architectures.
*----------------------------------------------------------------------
*/
+#if defined(__i386__) || defined(__x86_64__)
static Bool
Hostinfo_HypervisorPresent(void)
{
static Bool hypervisorPresent;
-#if defined(__i386__) || defined(__x86_64__)
CPUIDRegs regs;
if (!hypervisorPresent) {
__GET_CPUID(1, ®s);
hypervisorPresent = CPUID_ISSET(1, ECX, HYPERVISOR, regs.ecx);
}
-#endif
return hypervisorPresent;
}
+#endif
/*