From: Jan Kiszka <jan.kiszka@siemens.com>
To: Avi Kivity <avi@redhat.com>
Cc: kvm-devel <kvm@vger.kernel.org>
Subject: [PATCH] kmod: Adjust kvm_smp_send_reschedule availability
Date: Mon, 11 May 2009 17:37:08 +0200 [thread overview]
Message-ID: <4A084624.4010704@siemens.com> (raw)
Also x86_64 before 2.6.26 requires kvm_smp_send_reschedule.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
external-module-compat-comm.h | 6 ++++--
external-module-compat.c | 6 ++++--
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/external-module-compat-comm.h b/external-module-compat-comm.h
index 88d2314..e1e203c 100644
--- a/external-module-compat-comm.h
+++ b/external-module-compat-comm.h
@@ -214,10 +214,12 @@ typedef _Bool bool;
#endif
/*
- * smp_call_function_mask() is not defined/exported below 2.6.24
+ * smp_call_function_mask() is not defined/exported below 2.6.24 on all
+ * targets and below 2.6.26 on x86-64
*/
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) || \
+ (defined CONFIG_X86_64 && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26))
int kvm_smp_call_function_mask(cpumask_t mask, void (*func) (void *info),
void *info, int wait);
diff --git a/external-module-compat.c b/external-module-compat.c
index ca269cc..f6013f3 100644
--- a/external-module-compat.c
+++ b/external-module-compat.c
@@ -138,10 +138,12 @@ uint64_t div64_u64(uint64_t dividend, uint64_t divisor)
#endif
/*
- * smp_call_function_mask() is not defined/exported below 2.6.24
+ * smp_call_function_mask() is not defined/exported below 2.6.24 on all
+ * targets and below 2.6.26 on x86-64
*/
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) || \
+ (defined CONFIG_X86_64 && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26))
#include <linux/smp.h>
reply other threads:[~2009-05-11 15:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4A084624.4010704@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.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.