]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
kvm-kmod: update to 3.6.
authorArne Fitzenreiter <arne_f@git.ipfire.org>
Sat, 20 Oct 2012 11:07:45 +0000 (13:07 +0200)
committerArne Fitzenreiter <arne_f@git.ipfire.org>
Sat, 20 Oct 2012 11:07:45 +0000 (13:07 +0200)
lfs/kvm-kmod
make.sh
src/patches/kvm-kmod-2.6.38.6_remove_pvclock_scale_delta_redifinition.patch [deleted file]
src/patches/kvm-kmod-3.0b_remove_pvclock_scale_delta_redefinition.patch [deleted file]

index 0280b5e69a43afc986886be355e93d0002134d15..90bd790a9d0e4dac33f448fe7fa836f3a57ac977 100644 (file)
@@ -26,7 +26,7 @@ include Config
 
 VERSUFIX=ipfire$(KCFG)
 
-VER        = 3.0b
+VER        = 3.6
 
 THISAPP    = kvm-kmod-$(VER)
 DL_FILE    = $(THISAPP).tar.bz2
@@ -43,7 +43,7 @@ objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_MD5 = 19792041adc25779b31ea5c5fdca7d8c
+$(DL_FILE)_MD5 = 3e51d395d6a0ecac6ae600a0515880c2
 
 install : $(TARGET)
 
@@ -76,7 +76,6 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
-       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/$(THISAPP)_remove_pvclock_scale_delta_redefinition.patch
        cd $(DIR_APP) && ./configure --kerneldir=/usr/src/linux
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && install -m 644 x86/*.ko \
diff --git a/make.sh b/make.sh
index 25958f8d017575fc9c8874fd8f17a9d46d7837e7..859f8729653ccdd0cdb1302da0c3f6db8b00f150 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -393,7 +393,7 @@ buildipfire() {
 
     # x86-pae (Native and new XEN) kernel build
     ipfiremake linux                   KCFG="-pae"
-#    ipfiremake kvm-kmod                       KCFG="-pae"
+    ipfiremake kvm-kmod                        KCFG="-pae"
     ipfiremake v4l-dvb                 KCFG="-pae"
     ipfiremake alsa                    KCFG="-pae" KMOD=1
     ipfiremake mISDN                   KCFG="-pae"
@@ -407,7 +407,7 @@ buildipfire() {
 
     # x86 kernel build
     ipfiremake linux                   KCFG=""
-#    ipfiremake kvm-kmod                       KCFG=""
+    ipfiremake kvm-kmod                        KCFG=""
     ipfiremake v4l-dvb                 KCFG=""
     ipfiremake alsa                    KCFG="" KMOD=1
     ipfiremake mISDN                   KCFG=""
diff --git a/src/patches/kvm-kmod-2.6.38.6_remove_pvclock_scale_delta_redifinition.patch b/src/patches/kvm-kmod-2.6.38.6_remove_pvclock_scale_delta_redifinition.patch
deleted file mode 100644 (file)
index 331e8a1..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-diff -Naur kvm-kmod-2.6.38.6.org/x86/external-module-compat.h kvm-kmod-2.6.38.6/x86/external-module-compat.h
---- kvm-kmod-2.6.38.6.org/x86/external-module-compat.h 2011-05-15 09:34:48.000000000 +0200
-+++ kvm-kmod-2.6.38.6/x86/external-module-compat.h     2011-05-21 13:30:50.529469540 +0200
-@@ -1064,41 +1064,6 @@
- #endif /* >= 2.6.36 */
--#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)
--static inline u64 pvclock_scale_delta(u64 delta, u32 mul_frac, int shift)
--{
--      u64 product;
--#ifdef __i386__
--      u32 tmp1, tmp2;
--#endif
--
--      if (shift < 0)
--              delta >>= -shift;
--      else
--              delta <<= shift;
--
--#ifdef __i386__
--      __asm__ (
--              "mul  %5       ; "
--              "mov  %4,%%eax ; "
--              "mov  %%edx,%4 ; "
--              "mul  %5       ; "
--              "xor  %5,%5    ; "
--              "add  %4,%%eax ; "
--              "adc  %5,%%edx ; "
--              : "=A" (product), "=r" (tmp1), "=r" (tmp2)
--              : "a" ((u32)delta), "1" ((u32)(delta >> 32)), "2" (mul_frac) );
--#elif defined(__x86_64__)
--      __asm__ (
--              "mul %%rdx ; shrd $32,%%rdx,%%rax"
--              : "=a" (product) : "0" (delta), "d" ((u64)mul_frac) );
--#else
--#error implement me!
--#endif
--
--      return product;
--}
--#endif
- #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,34) && \
-     LINUX_VERSION_CODE != KERNEL_VERSION(2,6,32) && defined(CONFIG_X86_64)
diff --git a/src/patches/kvm-kmod-3.0b_remove_pvclock_scale_delta_redefinition.patch b/src/patches/kvm-kmod-3.0b_remove_pvclock_scale_delta_redefinition.patch
deleted file mode 100644 (file)
index 87effb3..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -Naur kvm-kmod-3.0b.org/x86/external-module-compat.h kvm-kmod-3.0b/x86/external-module-compat.h
---- kvm-kmod-3.0b.org/x86/external-module-compat.h     2011-07-23 16:39:10.000000000 +0200
-+++ kvm-kmod-3.0b/x86/external-module-compat.h 2011-08-13 21:37:56.046677541 +0200
-@@ -1095,7 +1095,7 @@
- #endif /* >= 2.6.36 */
--#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37) || \
-+#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)
- {