From: Carlo Marcelo Arenas Belon <[EMAIL PROTECTED]>

Defines MAX_IO_APICS if not defined already with the same value used in
<asm/apicdef.h> and which wasn't loaded for non-smp kernels before 2.6.21

Signed-off-by: Carlo Marcelo Arenas Belon <[EMAIL PROTECTED]>
Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>

diff --git a/kernel/external-module-compat.h b/kernel/external-module-compat.h
index 1dc5a96..348b8c8 100644
--- a/kernel/external-module-compat.h
+++ b/kernel/external-module-compat.h
@@ -573,6 +573,11 @@ static inline void blahblah(void)
 
 #endif
 
+/* apicdef.h doesn't get included before 2.6.21 if non-smp */
+#ifndef MAX_IO_APICS
+#define MAX_IO_APICS 64
+#endif
+
 /* X86_FEATURE_NX is missing in some x86_64 kernels */
 
 #include <asm/cpufeature.h>

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
kvm-commits mailing list
kvm-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-commits

Reply via email to