diff --git a/hv-rhel6.x/hv/hv.c b/hv-rhel6.x/hv/hv.c index ed1d9dd6d..6beff7ffc 100644 --- a/hv-rhel6.x/hv/hv.c +++ b/hv-rhel6.x/hv/hv.c @@ -222,9 +222,11 @@ int hv_init(void) { int max_leaf; union hv_x64_msr_hypercall_contents hypercall_msr; - union hv_x64_msr_hypercall_contents tsc_msr; void *virtaddr = NULL; +#ifdef CONFIG_X86_64 + union hv_x64_msr_hypercall_contents tsc_msr; void *va_tsc = NULL; +#endif memset(hv_context.synic_event_page, 0, sizeof(void *) * NR_CPUS); memset(hv_context.synic_message_page, 0, diff --git a/hv-rhel7.x/hv/hv.c b/hv-rhel7.x/hv/hv.c index ff5651fde..af0f42614 100644 --- a/hv-rhel7.x/hv/hv.c +++ b/hv-rhel7.x/hv/hv.c @@ -206,9 +206,11 @@ int hv_init(void) { int max_leaf; union hv_x64_msr_hypercall_contents hypercall_msr; - union hv_x64_msr_hypercall_contents tsc_msr; void *virtaddr = NULL; +#ifdef CONFIG_X86_64 + union hv_x64_msr_hypercall_contents tsc_msr; void *va_tsc = NULL; +#endif memset(hv_context.synic_event_page, 0, sizeof(void *) * NR_CPUS); memset(hv_context.synic_message_page, 0,