From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Hecken Subject: 2 Bugs found for compilation on 32 Bit machine Date: Fri, 18 May 2007 10:30:21 +0200 Message-ID: <464D641D.1040402@bahntechnik.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090101070802060000060902" Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org, eddie.dong-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org This is a multi-part message in MIME format. --------------090101070802060000060902 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Hello, I have an Intel Core 2 Duo running Ubuntu Feisty 2.6.20-15 in 32 Bit mode. If I try to compile kvm-trunk ( kvm-24-gfbfe1dc ) and the modules from git ( v2.6.22-rc1-gf552bf6 ) I get a few compiler errors and the compiler stops. Please find attached 2 patches to fix the errors. Danie Hecken --------------090101070802060000060902 Content-Type: text/x-diff; name="user_test_32bit.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="user_test_32bit.patch" --- kvm-trunk_old/user/Makefile 2007-05-17 18:42:35.000000000 +0200 +++ kvm-trunk/user/Makefile 2007-05-18 10:11:30.000000000 +0200 @@ -39,12 +39,11 @@ libkvm.a: kvmctl.o $(AR) rcs $@ $^ -flatfiles-common = test/simple.flat test/stringio.flat test/memtest1.flat \ - test/bootstrap test/vmexit.flat +flatfiles-common = test/bootstrap test/vmexit.flat flatfiles-32 = -flatfiles-64 = test/access.flat test/irq.flat test/sieve.flat +flatfiles-64 = test/access.flat test/irq.flat test/sieve.flat test/simple.flat test/stringio.flat test/memtest1.flat flatfiles: $(flatfiles-common) $(flatfiles-$(bits)) --------------090101070802060000060902 Content-Type: text/x-diff; name="msrs_32bit.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="msrs_32bit.patch" --- kvm-trunk_old/kernel/vmx.c 2007-05-17 19:44:10.000000000 +0200 +++ kvm-trunk/kernel/vmx.c 2007-05-18 10:20:08.000000000 +0200 @@ -479,6 +479,7 @@ int index, save_nmsrs; save_nmsrs = 0; +#ifdef X86_64 if (is_long_mode(vcpu)) { index = __find_msr_index(vcpu, MSR_SYSCALL_MASK); if (index >= 0) @@ -496,12 +497,11 @@ * MSR_K6_STAR is only needed on long mode guests, and only * if efer.sce is enabled. */ -#ifdef X86_64 index = __find_msr_index(vcpu, MSR_K6_STAR); if ((index >= 0) && (vcpu->shadow_efer & EFER_SCE)) move_msr_up(vcpu, index, save_nmsrs++); -#endif } +#endif vcpu->save_nmsrs = save_nmsrs; #ifdef CONFIG_X86_64 --------------090101070802060000060902 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ --------------090101070802060000060902 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --------------090101070802060000060902--