Re: Linux v2.6.20-rc5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





From: Jeff Chua <[email protected]>

  CC [M]  drivers/kvm/vmx.o
{standard input}: Assembler messages:
{standard input}:3257: Error: bad register name `%sil'
make[2]: *** [drivers/kvm/vmx.o] Error 1
make[1]: *** [drivers/kvm] Error 2
make: *** [drivers] Error 2


I'm not using the kernel profiler, so here's a patch to make it work without CONFIG_PROFILING.


Thanks,
Jeff


--- linux/drivers/kvm/vmx.c.org	2007-01-13 12:57:28 +0800
+++ linux/drivers/kvm/vmx.c	2007-01-13 14:01:17 +0800
@@ -21,7 +21,11 @@
 #include <linux/module.h>
 #include <linux/mm.h>
 #include <linux/highmem.h>
+
+#ifdef CONFIG_PROFILING
 #include <linux/profile.h>
+#endif
+
 #include <asm/io.h>
 #include <asm/desc.h>

@@ -1861,11 +1865,13 @@
 	asm ("mov %0, %%ds; mov %0, %%es" : : "r"(__USER_DS));
 #endif

+#ifdef CONFIG_PROFILING
 	/*
 	 * Profile KVM exit RIPs:
 	 */
 	if (unlikely(prof_on == KVM_PROFILING))
 		profile_hit(KVM_PROFILING, (void *)vmcs_readl(GUEST_RIP));
+#endif

 	kvm_run->exit_type = 0;
 	if (fail) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux