diff options
-rw-r--r-- | src/hypervisor_vendor.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/hypervisor_vendor.c b/src/hypervisor_vendor.c index 0a447565..934ac39b 100644 --- a/src/hypervisor_vendor.c +++ b/src/hypervisor_vendor.c @@ -36,6 +36,8 @@ #define SYS_HYPERVISOR "/sys/hypervisor/type" #define SYS_DMI_VENDOR "/sys/class/dmi/id/sys_vendor" +#if defined(__x86_64__) || defined(__i386__) + /* * This CPUID leaf returns the information about the hypervisor. * EAX : maximum input value for CPUID supported by the hypervisor. @@ -98,6 +100,13 @@ static const char *get_hypervisor_cpuid(void) return NULL; } +#else /* ! __x86_64__ */ +static const char *get_hypervisor_cpuid(void) +{ +return NULL; +} +#endif + /* Use DMI vendor information */ static const char *get_hypervisor_dmi(void) { |