Skip to contentSkip to conversation

Backwards compat for < 2.6.16?

PATCH In review Rusty Russell 2 participants 4 messages Oct 2, 2007 2 messages not in the archive KVM

lore
Share & tools
lore
#0 lore raw

Hi all,

The lapic code uses ktime_t and hrtimers, which means we no longer
build for kernels 2.6.15 and below. Is it worth trying to fake this infrastructure up, building without lapic, or abandoning < 2.6.16?

Thanks,
Rusty.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#2 lore raw

PATCH 1/1 Script to help check compatibility against a range of kernels.

In reply to a message not in the archive

This makes it easier to check kvm-userspace compatibility layer.

---
 check-compat.sh |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)
 create mode 100755 check-compat.sh
check-compat.sh new file +27 -0
new file mode 100755
index 0000000..c07be4d
@@ -0,0 +1,27 @@
+#! /bin/sh
+
+die()
+{
+    echo FAILED:
+    cat $LOGFILE
+    exit 1
+}
+
+if [ $# = 0 ]; then
+    echo Usage: ./check-compat.sh kerneldir... >&2
+    echo eg. './check-compat.sh ../linux-2.6.*' >&2
+    exit 1
+fi
+
+LOGFILE=`mktemp -t kvm-check-compat.XXXXXXXXXX`
+trap "rm -f $LOGFILE" 0
+
+for k in "$@"; do
+    [ -d $k ] || continue
+    make clean > /dev/null 2>&1
+    echo -n Checking $k...
+    ./configure --kerneldir=`pwd`/$k > $LOGFILE 2>&1 || die
+    make >> $LOGFILE 2>&1 || die
+    echo ok.
+done
+
Signature · 9 lines
1.5.1.3




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
#5 lore raw
In reply to a message not in the archive
Quoted 7 lines · Rusty Russell

Hi all,

The lapic code uses ktime_t and hrtimers, which means we no longer
build for kernels 2.6.15 and below. Is it worth trying to fake this infrastructure up, building without lapic, or abandoning < 2.6.16?

I think we can stub the code away, and hack the feature reporting to hide the crippled functionality.

Signature · 7 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
#4 lore raw

Re: [PATCH] Script to help check compatibility against a range of kernels.

In reply to a message not in the archive
Quoted 3 lines · Rusty Russell

This makes it easier to check kvm-userspace compatibility layer.

I actually started to write something like this, except it pulled older kernels from git.

Thanks.

Quoted 39 lines
---
 check-compat.sh |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)
 create mode 100755 check-compat.sh
check-compat.sh new file +27 -0
new file mode 100755
index 0000000..c07be4d
@@ -0,0 +1,27 @@
+#! /bin/sh
+
+die()
+{
+    echo FAILED:
+    cat $LOGFILE
+    exit 1
+}
+
+if [ $# = 0 ]; then
+    echo Usage: ./check-compat.sh kerneldir... >&2
+    echo eg. './check-compat.sh ../linux-2.6.*' >&2
+    exit 1
+fi
+
+LOGFILE=`mktemp -t kvm-check-compat.XXXXXXXXXX`
+trap "rm -f $LOGFILE" 0
+
+for k in "$@"; do
+    [ -d $k ] || continue
+    make clean > /dev/null 2>&1
+    echo -n Checking $k...
+    ./configure --kerneldir=`pwd`/$k > $LOGFILE 2>&1 || die
+    make >> $LOGFILE 2>&1 || die
+    echo ok.
+done
+
Signature · 7 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/