From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Pelle <Pelle-5JapdU7xTciEVqv0pETR8A@public.gmane.org>
Cc: kvm-devel <kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: [ANNOUNCE] kvm-56 release
Date: Thu, 13 Dec 2007 16:56:12 +0200 [thread overview]
Message-ID: <4761480C.6020204@qumranet.com> (raw)
In-Reply-To: <47613F6B.5030508-5JapdU7xTciEVqv0pETR8A@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 391 bytes --]
Pelle wrote:
> I get the following error when modprobing the new module:
>
> WARNING: Error inserting kvm
> (/lib/modules/2.6.22-14-generic/extra/kvm.ko): Unknown symbol in module,
> or unknown parameter (see dmesg)
> kvm: Unknown symbol cmpxchg64
>
> Ubuntu 7.10 32-bits, C2D E6300
>
>
Please try the attached patch.
--
error compiling committee.c: too many arguments to function
[-- Attachment #2: cmpxchg64.patch --]
[-- Type: text/x-patch, Size: 979 bytes --]
diff --git a/kernel/external-module-compat.h b/kernel/external-module-compat.h
index ea94f30..b044cf9 100644
--- a/kernel/external-module-compat.h
+++ b/kernel/external-module-compat.h
@@ -322,6 +322,28 @@ static inline void __kvm_set_64bit(u64 *ptr, u64 val)
#undef set_64bit
#define set_64bit __kvm_set_64bit
+static inline unsigned long long __kvm_cmpxchg64(volatile void *ptr,
+ unsigned long long old,
+ unsigned long long new)
+{
+ unsigned long long prev;
+ __asm__ __volatile__(LOCK_PREFIX "cmpxchg8b %3"
+ : "=A"(prev)
+ : "b"((unsigned long)new),
+ "c"((unsigned long)(new >> 32)),
+ "m"(*__xg(ptr)),
+ "0"(old)
+ : "memory");
+ return prev;
+}
+
+#define kvm_cmpxchg64(ptr,o,n)\
+ ((__typeof__(*(ptr)))__kvm_cmpxchg64((ptr),(unsigned long long)(o),\
+ (unsigned long long)(n)))
+
+#undef cmpxchg64
+#define cpmxchg64(ptr, o, n) kvm_cmpxchg64(ptr, o, n)
+
#endif
#ifndef CONFIG_PREEMPT_NOTIFIERS
[-- Attachment #3: Type: text/plain, Size: 308 bytes --]
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
[-- Attachment #4: Type: text/plain, Size: 186 bytes --]
_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel
next prev parent reply other threads:[~2007-12-13 14:56 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-13 13:32 [ANNOUNCE] kvm-56 release Avi Kivity
[not found] ` <4761347E.9090806-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-12-13 14:19 ` Pelle
2007-12-13 14:24 ` Alexey Eremenko
[not found] ` <64F9B87B6B770947A9F8391472E032160C95C606-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-12-13 14:58 ` Pelle
[not found] ` <47613F6B.5030508-5JapdU7xTciEVqv0pETR8A@public.gmane.org>
2007-12-13 14:56 ` Avi Kivity [this message]
[not found] ` <4761480C.6020204-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-12-13 15:22 ` Pelle
[not found] ` <47614E53.2070809-5JapdU7xTciEVqv0pETR8A@public.gmane.org>
2007-12-13 15:29 ` Avi Kivity
[not found] ` <47614FCB.6060705-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-12-13 15:38 ` Pelle
2007-12-13 14:59 ` Alexey Eremenko
[not found] ` <64F9B87B6B770947A9F8391472E032160C95C607-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-12-13 15:06 ` Avi Kivity
[not found] ` <47614A81.90803-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-12-14 16:26 ` Carlo Marcelo Arenas Belon
2007-12-14 16:11 ` Carlo Marcelo Arenas Belon
2007-12-13 15:13 ` Farkas Levente
[not found] ` <47614C02.60904-lWVWdrzSO4GHXe+LvDLADg@public.gmane.org>
2007-12-13 16:42 ` Izik Eidus
[not found] ` <4761610B.1040304-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-12-13 21:50 ` Farkas Levente
[not found] ` <4761A921.2060701-lWVWdrzSO4GHXe+LvDLADg@public.gmane.org>
2007-12-16 8:19 ` Izik Eidus
2007-12-13 19:05 ` Theodore Tso
[not found] ` <20071213190545.GC9921-AKGzg7BKzIDYtjvyW6yDsg@public.gmane.org>
2007-12-14 14:39 ` Avi Kivity
2007-12-16 8:54 ` Carlo Marcelo Arenas Belon
2007-12-16 11:34 ` Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4761480C.6020204@qumranet.com \
--to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
--cc=Pelle-5JapdU7xTciEVqv0pETR8A@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.