Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93786
b: refs/heads/master
c: e3da3ac
h: refs/heads/master
v: v3
  • Loading branch information
Joerg Roedel authored and Avi Kivity committed Apr 27, 2008
1 parent 6062e06 commit 52d66e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 33bd6a0b3e8baed6469c8e68ea1b16cb50c4f5af
refs/heads/master: e3da3acdb32c1804a5c853feebcc037b7434076f
8 changes: 8 additions & 0 deletions trunk/arch/x86/kvm/svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ MODULE_LICENSE("GPL");
#define SVM_FEATURE_LBRV (1 << 1)
#define SVM_DEATURE_SVML (1 << 2)

static bool npt_enabled = false;

static void kvm_reput_irq(struct vcpu_svm *svm);

static inline struct vcpu_svm *to_svm(struct kvm_vcpu *vcpu)
Expand Down Expand Up @@ -413,6 +415,12 @@ static __init int svm_hardware_setup(void)

svm_features = cpuid_edx(SVM_CPUID_FUNC);

if (!svm_has(SVM_FEATURE_NPT))
npt_enabled = false;

if (npt_enabled)
printk(KERN_INFO "kvm: Nested Paging enabled\n");

return 0;

err_2:
Expand Down

0 comments on commit 52d66e9

Please sign in to comment.