xen/15381-log-svm-npt.patch

32 lines
916 B
Diff

# HG changeset patch
# User kfraser@localhost.localdomain
# Date 1182263948 -3600
# Node ID f1ca92bf7e0f0fc8441f9681395a09afe4617af9
# Parent 07688f8f53943cb51c965fa91923b1c4a3e87d0f
hvm svm: Log into 'xm dmesg' that SVM NPT is enabled.
Signed-off-by: Keir Fraser <keir@xensource.com>
Index: xen-3.1-testing/xen/arch/x86/hvm/svm/svm.c
===================================================================
--- xen-3.1-testing.orig/xen/arch/x86/hvm/svm/svm.c
+++ xen-3.1-testing/xen/arch/x86/hvm/svm/svm.c
@@ -895,7 +895,7 @@ static struct hvm_function_table svm_fun
.event_injection_faulted = svm_event_injection_faulted
};
-void svm_npt_detect(void)
+static void svm_npt_detect(void)
{
u32 eax, ebx, ecx, edx;
@@ -956,6 +956,9 @@ int start_svm(void)
hvm_enable(&svm_function_table);
+ if ( opt_hap_enabled )
+ printk("SVM: Nested paging enabled.\n");
+
return 1;
}