* [PATCH 1/2] KVM: fix the description of kvm-amd.nested in documentation
@ 2010-09-20 14:16 Xiao Guangrong
2010-09-20 14:17 ` [PATCH 2/2] KVM: document 'kvm.mmu_audit' parameter Xiao Guangrong
2010-09-20 20:17 ` [PATCH 1/2] KVM: fix the description of kvm-amd.nested in documentation Marcelo Tosatti
0 siblings, 2 replies; 4+ messages in thread
From: Xiao Guangrong @ 2010-09-20 14:16 UTC (permalink / raw)
To: Avi Kivity; +Cc: Marcelo Tosatti, LKML, KVM
The default state of 'kvm-amd.nested' is enabled now, so fix the documentation
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
---
Documentation/kernel-parameters.txt | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
index 6bd2375..3170edb 100644
--- a/Documentation/kernel-parameters.txt
+++ b/Documentation/kernel-parameters.txt
@@ -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.
--
1.7.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] KVM: document 'kvm.mmu_audit' parameter
2010-09-20 14:16 [PATCH 1/2] KVM: fix the description of kvm-amd.nested in documentation Xiao Guangrong
@ 2010-09-20 14:17 ` Xiao Guangrong
2010-09-27 10:06 ` [PATCH 4/7] KVM: MMU: audit: fix vcpu's spte walking Xiao Guangrong
2010-09-20 20:17 ` [PATCH 1/2] KVM: fix the description of kvm-amd.nested in documentation Marcelo Tosatti
1 sibling, 1 reply; 4+ messages in thread
From: Xiao Guangrong @ 2010-09-20 14:17 UTC (permalink / raw)
To: Avi Kivity; +Cc: Marcelo Tosatti, LKML, KVM
Document this parameter into Documentation/kernel-parameters.txt
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
---
Documentation/kernel-parameters.txt | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
index 3170edb..8dc2548 100644
--- a/Documentation/kernel-parameters.txt
+++ b/Documentation/kernel-parameters.txt
@@ -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)
--
1.7.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 4/7] KVM: MMU: audit: fix vcpu's spte walking
2010-09-20 14:17 ` [PATCH 2/2] KVM: document 'kvm.mmu_audit' parameter Xiao Guangrong
@ 2010-09-27 10:06 ` Xiao Guangrong
0 siblings, 0 replies; 4+ messages in thread
From: Xiao Guangrong @ 2010-09-27 10:06 UTC (permalink / raw)
To: Avi Kivity; +Cc: Marcelo Tosatti, LKML, KVM
After nested nested paging, it may using long mode to shadow 32/PAE paging
guest, so this patch fix it
Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
---
arch/x86/kvm/mmu_audit.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kvm/mmu_audit.c b/arch/x86/kvm/mmu_audit.c
index bd2b1be..dcca3e7 100644
--- a/arch/x86/kvm/mmu_audit.c
+++ b/arch/x86/kvm/mmu_audit.c
@@ -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);
--
1.7.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] KVM: fix the description of kvm-amd.nested in documentation
2010-09-20 14:16 [PATCH 1/2] KVM: fix the description of kvm-amd.nested in documentation Xiao Guangrong
2010-09-20 14:17 ` [PATCH 2/2] KVM: document 'kvm.mmu_audit' parameter Xiao Guangrong
@ 2010-09-20 20:17 ` Marcelo Tosatti
1 sibling, 0 replies; 4+ messages in thread
From: Marcelo Tosatti @ 2010-09-20 20:17 UTC (permalink / raw)
To: Xiao Guangrong; +Cc: Avi Kivity, LKML, KVM
On Mon, Sep 20, 2010 at 10:16:45PM +0800, Xiao Guangrong wrote:
> The default state of 'kvm-amd.nested' is enabled now, so fix the documentation
>
> Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
> ---
> Documentation/kernel-parameters.txt | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Applied both, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-09-27 10:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-20 14:16 [PATCH 1/2] KVM: fix the description of kvm-amd.nested in documentation Xiao Guangrong
2010-09-20 14:17 ` [PATCH 2/2] KVM: document 'kvm.mmu_audit' parameter Xiao Guangrong
2010-09-27 10:06 ` [PATCH 4/7] KVM: MMU: audit: fix vcpu's spte walking Xiao Guangrong
2010-09-20 20:17 ` [PATCH 1/2] KVM: fix the description of kvm-amd.nested in documentation Marcelo Tosatti
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.