Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932311AbWCMSOk (ORCPT ); Mon, 13 Mar 2006 13:14:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932305AbWCMSOk (ORCPT ); Mon, 13 Mar 2006 13:14:40 -0500 Received: from mailout1.vmware.com ([65.113.40.130]:42765 "EHLO mailout1.vmware.com") by vger.kernel.org with ESMTP id S932301AbWCMSOi (ORCPT ); Mon, 13 Mar 2006 13:14:38 -0500 Date: Mon, 13 Mar 2006 10:14:37 -0800 Message-Id: <200603131814.k2DIEbpA005766@zach-dev.vmware.com> Subject: [RFC, PATCH 20/24] i386 Vmi module fixups From: Zachary Amsden To: Linus Torvalds , Linux Kernel Mailing List , Virtualization Mailing List , Xen-devel , Andrew Morton , Zachary Amsden , Dan Hecht , Dan Arai , Anne Holler , Pratap Subrahmanyam , Christopher Li , Joshua LeVasseur , Chris Wright , Rik Van Riel , Jyothy Reddy , Jack Lo , Kip Macy , Jan Beulich , Ky Srinivasan , Wim Coekaerts , Leendert van Doorn , Zachary Amsden X-OriginalArrivalTime: 13 Mar 2006 18:14:37.0893 (UTC) FILETIME=[FD50A750:01C646C9] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2287 Lines: 57 Add a sub-arch specifier to the module identification string to avoid cross loading modules from different subarch compiles. XXX FIXME. Module loading is broken in paravirtualized VMI kernels, since there is no annotation fixup applied to modules. Signed-off-by: Zachary Amsden Index: linux-2.6.16-rc3/include/asm-i386/module.h =================================================================== --- linux-2.6.16-rc3.orig/include/asm-i386/module.h 2006-02-24 16:00:21.000000000 -0800 +++ linux-2.6.16-rc3/include/asm-i386/module.h 2006-02-24 16:02:02.000000000 -0800 @@ -1,6 +1,8 @@ #ifndef _ASM_I386_MODULE_H #define _ASM_I386_MODULE_H +#include + /* x86 is simple */ struct mod_arch_specific { @@ -72,6 +74,7 @@ struct mod_arch_specific #define MODULE_STACKSIZE "" #endif -#define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY MODULE_REGPARM MODULE_STACKSIZE +#define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY MODULE_REGPARM MODULE_STACKSIZE \ + MODULE_SUBARCH_VERMAGIC #endif /* _ASM_I386_MODULE_H */ Index: linux-2.6.16-rc3/include/asm-i386/mach-vmi/mach_module.h =================================================================== --- linux-2.6.16-rc3.orig/include/asm-i386/mach-vmi/mach_module.h 2006-02-24 16:02:02.000000000 -0800 +++ linux-2.6.16-rc3/include/asm-i386/mach-vmi/mach_module.h 2006-02-24 16:02:02.000000000 -0800 @@ -0,0 +1,6 @@ +#ifndef _ASM_I386_ARCH_MODULE_H +#define _ASM_I386_ARCH_MODULE_H + +#define MODULE_SUBARCH_VERMAGIC "VMI " + +#endif /* _ASM_I386_ARCH_MODULE_H */ Index: linux-2.6.16-rc3/include/asm-i386/mach-default/mach_module.h =================================================================== --- linux-2.6.16-rc3.orig/include/asm-i386/mach-default/mach_module.h 2006-02-24 16:02:02.000000000 -0800 +++ linux-2.6.16-rc3/include/asm-i386/mach-default/mach_module.h 2006-02-24 16:02:02.000000000 -0800 @@ -0,0 +1,6 @@ +#ifndef _ASM_I386_ARCH_MODULE_H +#define _ASM_I386_ARCH_MODULE_H + +#define MODULE_SUBARCH_VERMAGIC + +#endif /* _ASM_I386_ARCH_MODULE_H */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/