Re: kvm-kmod broken on Linux 2.6.32.y stable series [patch included]

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

 



I forgot to include the patch. Sorry about that.

On Mon, Dec 26, 2011 at 11:08 PM, Richard Yao <ryao@xxxxxxxxxxxxxxxxx> wrote:
> Commit 64c8f7b9a24b1de710ad8413da503d61ede6ae45 to Linux 2.6.32.y
> broke kvm-kmod. There are preprocessor directives in kvm-kmod that
> appear to be intended to remedy this, but there is a logical error in
> them. I have attached a patch that corrects that.
>
> I am not on the list, so please CC any replies to me.
--- a/kvm-kmod-3.1/x86/external-module-compat.h	2011-12-26 22:50:44.703699133 -0500
+++ b/kvm-kmod-3.1/x86/external-module-compat.h	2011-12-26 22:55:52.990693699 -0500
@@ -1095,8 +1095,8 @@
 
 #endif /* >= 2.6.36 */
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37) || \
-    (LINUX_VERSION_CODE == KERNEL_VERSION(2,6,32) && KERNEL_EXTRAVERSION < 40)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37) && \
+    (LINUX_VERSION_CODE != KERNEL_VERSION(2,6,32) || KERNEL_EXTRAVERSION < 40)
 static inline u64 pvclock_scale_delta(u64 delta, u32 mul_frac, int shift)
 {
 	u64 product;

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux