From: Sheng Yang <sheng@linux.intel.com>
To: Avi Kivity <avi@redhat.com>
Cc: kvm@vger.kernel.org, Sheng Yang <sheng@linux.intel.com>
Subject: [PATCH 1/1] kvm: fix external module on mtrr_var_range
Date: Wed, 5 Nov 2008 11:33:58 +0800 [thread overview]
Message-ID: <1225856038-18817-1-git-send-email-sheng@linux.intel.com> (raw)
Signed-off-by: Sheng Yang <sheng@linux.intel.com>
---
kernel/x86/external-module-compat.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/x86/external-module-compat.h b/kernel/x86/external-module-compat.h
index 882f5d1..b5e11e2 100644
--- a/kernel/x86/external-module-compat.h
+++ b/kernel/x86/external-module-compat.h
@@ -335,6 +335,8 @@ struct kvm_desc_ptr {
#define FEATURE_CONTROL_VMXON_ENABLED (1<<2)
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
+
struct mtrr_var_range {
u32 base_lo;
u32 base_hi;
@@ -342,8 +344,6 @@ struct mtrr_var_range {
u32 mask_hi;
};
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
-
/* In the Intel processor's MTRR interface, the MTRR type is always held in
an 8 bit field: */
typedef u8 mtrr_type;
--
1.5.4.5
next reply other threads:[~2008-11-05 3:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-05 3:33 Sheng Yang [this message]
2008-11-05 9:16 ` [PATCH 1/1] kvm: fix external module on mtrr_var_range 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=1225856038-18817-1-git-send-email-sheng@linux.intel.com \
--to=sheng@linux.intel.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