Browse Source

x86, hyper: fix build with !CONFIG_KVM_GUEST

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Avi Kivity 13 năm trước cách đây
mục cha
commit
d63d3e6217
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      arch/x86/kernel/cpu/hypervisor.c

+ 2 - 0
arch/x86/kernel/cpu/hypervisor.c

@@ -37,7 +37,9 @@ static const __initconst struct hypervisor_x86 * const hypervisors[] =
 #endif
 	&x86_hyper_vmware,
 	&x86_hyper_ms_hyperv,
+#ifdef CONFIG_KVM_GUEST
 	&x86_hyper_kvm,
+#endif
 };
 
 const struct hypervisor_x86 *x86_hyper;