Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93787
b: refs/heads/master
c: 6c7dac7
h: refs/heads/master
i:
  93785: 6062e06
  93783: 44c114d
v: v3
  • Loading branch information
Joerg Roedel authored and Avi Kivity committed Apr 27, 2008
1 parent 52d66e9 commit bd058db
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: e3da3acdb32c1804a5c853feebcc037b7434076f
refs/heads/master: 6c7dac72d5c7dc0e09512dce865398167be9a8f7
8 changes: 8 additions & 0 deletions trunk/arch/x86/kvm/svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ MODULE_LICENSE("GPL");
#define SVM_DEATURE_SVML (1 << 2)

static bool npt_enabled = false;
static int npt = 1;

module_param(npt, int, S_IRUGO);

static void kvm_reput_irq(struct vcpu_svm *svm);

Expand Down Expand Up @@ -418,6 +421,11 @@ static __init int svm_hardware_setup(void)
if (!svm_has(SVM_FEATURE_NPT))
npt_enabled = false;

if (npt_enabled && !npt) {
printk(KERN_INFO "kvm: Nested Paging disabled\n");
npt_enabled = false;
}

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

Expand Down

0 comments on commit bd058db

Please sign in to comment.