Skip to contentSkip to conversation

KVM: fix the description of kvm-amd.nested in documentation

PATCH Applied Xiao Guangrong 2 participants 4 messages Sep 20, 2010 – Sep 27, 2010

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 KVM: fix the description of kvm-amd.nested in documentation

The default state of 'kvm-amd.nested' is enabled now, so fix the documentation

---
 Documentation/kernel-parameters.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Documentation/kernel-parameters.txt +1 -1
index 6bd2375..3170edb 100644
@@ -1127,7 +1127,7 @@ and is between 256 and 4096 characters. It is defined in the file
 			Default is 1 (enabled)
 
 	kvm-amd.nested=	[KVM,AMD] Allow nested virtualization in KVM/SVM.
-			Default is 0 (off)
+			Default is 1 (enabled)
 
 	kvm-amd.npt=	[KVM,AMD] Disable nested paging (virtualized MMU)
 			for all guests.
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 2/2 KVM: document 'kvm.mmu_audit' parameter

Document this parameter into Documentation/kernel-parameters.txt

---
 Documentation/kernel-parameters.txt |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
Documentation/kernel-parameters.txt +4 -0
index 3170edb..8dc2548 100644
@@ -1126,6 +1126,10 @@ and is between 256 and 4096 characters. It is defined in the file
 	kvm.oos_shadow=	[KVM] Disable out-of-sync shadow paging.
 			Default is 1 (enabled)
 
+	kvm.mmu_audit=	[KVM] This is a R/W parameter which allows audit
+			KVM MMU at runtime.
+			Default is 0 (off)
+
 	kvm-amd.nested=	[KVM,AMD] Allow nested virtualization in KVM/SVM.
 			Default is 1 (enabled)
 
Signature · 1 line
1.7.0.4
#2 lore raw

PATCH 4/7 KVM: MMU: audit: fix vcpu's spte walking

After nested nested paging, it may using long mode to shadow 32/PAE paging guest, so this patch fix it

Xiao Guangrong <[email protected]>

---
 arch/x86/kvm/mmu_audit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kvm/mmu_audit.c +1 -1
index bd2b1be..dcca3e7 100644
@@ -51,7 +51,7 @@ static void mmu_spte_walk(struct kvm_vcpu *vcpu, inspect_spte_fn fn)
 	if (!VALID_PAGE(vcpu->arch.mmu.root_hpa))
 		return;
 
-	if (vcpu->arch.mmu.shadow_root_level == PT64_ROOT_LEVEL) {
+	if (vcpu->arch.mmu.root_level == PT64_ROOT_LEVEL) {
 		hpa_t root = vcpu->arch.mmu.root_hpa;
 
 		sp = page_header(root);
Signature · 1 line
1.7.0.4