KVM: fix the description of kvm-amd.nested in documentation
Subsystems (4)
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
Signed-off-by Xiao Guangrong <[email protected]>
--- Documentation/kernel-parameters.txt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Documentation/kernel-parameters.txt +1 -1
@@ -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
PATCH 2/2 KVM: document 'kvm.mmu_audit' parameter
Document this parameter into Documentation/kernel-parameters.txt
Signed-off-by Xiao Guangrong <[email protected]>
--- Documentation/kernel-parameters.txt | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
Documentation/kernel-parameters.txt +4 -0
@@ -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
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
@@ -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
Marcelo Tosatti
AppliedQuoted 6 lines · Xiao Guangrong
The default state of 'kvm-amd.nested' is enabled now, so fix the documentation
Signed-off-by Xiao Guangrong <[email protected]>--- Documentation/kernel-parameters.txt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Applied both, thanks.