From: Jan Kiszka <jan.kiszka@siemens.com>
To: Avi Kivity <avi@redhat.com>
Cc: kvm-devel <kvm@vger.kernel.org>
Subject: [PATCH] kvm-kmod: Fix condition for native_read_msr_safe wrapping
Date: Thu, 25 Jun 2009 10:24:12 +0200 [thread overview]
Message-ID: <4A43342C.2070303@siemens.com> (raw)
For i386, native_read_msr_safe was already introduced in 2.6.22.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
x86/external-module-compat.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/x86/external-module-compat.h b/x86/external-module-compat.h
index 881602e..8436e43 100644
--- a/x86/external-module-compat.h
+++ b/x86/external-module-compat.h
@@ -72,6 +72,8 @@ typedef u64 phys_addr_t;
#define _ASM_ALIGN __ASM_SEL(.balign 4, .balign 8)
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22) || defined(CONFIG_X86_64)
+
static inline unsigned long long native_read_msr_safe(unsigned int msr,
int *err)
{
@@ -90,6 +92,8 @@ static inline unsigned long long native_read_msr_safe(unsigned int msr,
#endif
+#endif
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26)
static inline int rdmsrl_safe(unsigned msr, unsigned long long *p)
next reply other threads:[~2009-06-25 8:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-25 8:24 Jan Kiszka [this message]
2009-06-25 10:48 ` [PATCH] kvm-kmod: Fix condition for native_read_msr_safe wrapping 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=4A43342C.2070303@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox