This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] [xen-3.0.3-testing] [HVM][SVM] Check if SVM is disabled

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.0.3-testing] [HVM][SVM] Check if SVM is disabled by the BIOS before enabling it.
From: "Xen patchbot-3.0.3-testing" <patchbot-3.0.3-testing@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 12 Oct 2006 17:15:26 -0700
Delivery-date: Fri, 13 Oct 2006 01:43:06 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1160665930 -3600
# Node ID d845c9522d9e26d7b3cbd6a193d583a47fe3c787
# Parent  dcee7eca71afd3525543388d4aa22ec95564cdc1
[HVM][SVM] Check if SVM is disabled by the BIOS before enabling it.

Newer BIOS implementations will be able to disable the SVM feature,
although an additional test of an MSR  (VMCR 0xC0010114 bit 4) is
necessary (set equals disabled).  Bit 4 of MSR 0xc0010114 returns 0
(SVM enabled) on machines with older BIOS' without the SVM disable
feature support.

Signed-off-by: Wei Huang <wei.huang2@xxxxxxx>=20
Signed-off-by: Tom Woller <thomas.woller@xxxxxxx>=20
 xen/arch/x86/hvm/svm/svm.c |    7 +++++++
 1 files changed, 7 insertions(+)

diff -r dcee7eca71af -r d845c9522d9e xen/arch/x86/hvm/svm/svm.c
--- a/xen/arch/x86/hvm/svm/svm.c        Thu Oct 12 16:09:15 2006 +0100
+++ b/xen/arch/x86/hvm/svm/svm.c        Thu Oct 12 16:12:10 2006 +0100
@@ -840,6 +840,13 @@ int start_svm(void)
     if (!(test_bit(X86_FEATURE_SVME, &boot_cpu_data.x86_capability)))
         return 0;
+    /* check whether SVM feature is disabled in BIOS */
+    rdmsr(0xC0010114, eax, edx);
+    if ( eax & 0x00000010 ) {
+        printk("AMD SVM Extension is disabled in BIOS.\n");
+        return 0;
+    }
     if (!(hsa[cpu] = alloc_host_save_area()))
         return 0;

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.0.3-testing] [HVM][SVM] Check if SVM is disabled by the BIOS before enabling it., Xen patchbot-3.0.3-testing <=