public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: kvm@vger.kernel.org
Cc: joro@8bytes.org, anthony@codemonkey.ws, Alexander Graf <agraf@suse.de>
Subject: [PATCH 1/2] Add SVM CPUID feature define for backwards compatibility
Date: Mon,  1 Sep 2008 13:59:01 +0200	[thread overview]
Message-ID: <1220270342-15769-2-git-send-email-agraf@suse.de> (raw)
In-Reply-To: <1220270342-15769-1-git-send-email-agraf@suse.de>

Add the SVM capability to the external module compat header, so we can use it
when the kernel does not know about this define.

Signed-off-by: Alexander Graf <agraf@suse.de>
---
 kernel/x86/external-module-compat.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/kernel/x86/external-module-compat.h b/kernel/x86/external-module-compat.h
index c53e0d6..c4def59 100644
--- a/kernel/x86/external-module-compat.h
+++ b/kernel/x86/external-module-compat.h
@@ -201,6 +201,10 @@ static inline void preempt_notifier_sys_exit(void) {}
 #define X86_FEATURE_NX (1*32+20)
 #endif
 
+#ifndef X86_FEATURE_SVM
+#define X86_FEATURE_SVM (6*32+2)
+#endif
+
 #undef true
 #define true 1
 #undef false
-- 
1.5.6


  reply	other threads:[~2008-09-01 11:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-01 11:59 [PATCH 0/2] [RFC] Add support for nested SVM (userspace) Alexander Graf
2008-09-01 11:59 ` Alexander Graf [this message]
2008-09-01 11:59   ` [PATCH 2/2] Allow the SVM CPUID bit in a VM Alexander Graf
2008-09-01 14:00     ` Avi Kivity
2008-09-02 17:42       ` Alexander Graf
2008-09-02 17:53         ` Alexander Graf
2008-09-02 19:36           ` Itamar Heim
2008-09-03  7:55           ` Gerd Hoffmann
2008-09-03  8:04             ` Alexander Graf
2008-09-03  9:19               ` Avi Kivity
2008-09-03  9:13         ` 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=1220270342-15769-2-git-send-email-agraf@suse.de \
    --to=agraf@suse.de \
    --cc=anthony@codemonkey.ws \
    --cc=joro@8bytes.org \
    --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