Skip to contentSkip to conversation

KVM/MMU: Fix comment in walk_shadow_page_lockless_end()

PATCH Applied Tianyu Lan 2 participants 3 messages Sep 7, 2018 – Sep 14, 2018

Subsystems (3)
lore
Share & tools
lore

Tianyu Lan

author
#0 lore raw

PATCH 1/1 KVM/MMU: Fix comment in walk_shadow_page_lockless_end()

kvm_commit_zap_page() has been renamed to kvm_mmu_commit_zap_page() This patch is to fix the commit.

---
 arch/x86/kvm/mmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kvm/mmu.c +1 -1
index 7ccd29b95746..648b839a349d 100644
@@ -947,7 +947,7 @@ static void walk_shadow_page_lockless_end(struct kvm_vcpu *vcpu)
 {
 	/*
 	 * Make sure the write to vcpu->mode is not reordered in front of
-	 * reads to sptes.  If it does, kvm_commit_zap_page() can see us
+	 * reads to sptes.  If it does, kvm_mmu_commit_zap_page() can see us
 	 * OUTSIDE_GUEST_MODE and proceed to free the shadow page table.
 	 */
 	smp_store_release(&vcpu->mode, OUTSIDE_GUEST_MODE);
Signature · 1 line
2.14.4
author
#1 lore raw

PATCH RESEND 1/1 KVM/MMU: Fix comment in walk_shadow_page_lockless_end()

kvm_commit_zap_page() has been renamed to kvm_mmu_commit_zap_page() This patch is to fix the commit.

---
Sorry for the broken title and resend.

 arch/x86/kvm/mmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kvm/mmu.c +1 -1
index 7ccd29b95746..648b839a349d 100644
@@ -947,7 +947,7 @@ static void walk_shadow_page_lockless_end(struct kvm_vcpu *vcpu)
 {
 	/*
 	 * Make sure the write to vcpu->mode is not reordered in front of
-	 * reads to sptes.  If it does, kvm_commit_zap_page() can see us
+	 * reads to sptes.  If it does, kvm_mmu_commit_zap_page() can see us
 	 * OUTSIDE_GUEST_MODE and proceed to free the shadow page table.
 	 */
 	smp_store_release(&vcpu->mode, OUTSIDE_GUEST_MODE);
Signature · 1 line
2.14.4
maintainer Applied
#2 lore raw
In reply to Tianyu Lan
Quoted 14 lines · Tianyu Lan

kvm_commit_zap_page() has been renamed to kvm_mmu_commit_zap_page() This patch is to fix the commit.

---
 arch/x86/kvm/mmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kvm/mmu.c +0 -0
index 7ccd29b95746..648b839a349d 100644

arch/x86/kvm/mmu.c static void walk_shadow_page_lockless_end(struct kvm_vcpu *vcpu) · line 953

Quoted 8 lines
arch/x86/kvm/mmu.c +1 -1
@@ -947,7 +947,7 @@ static void walk_shadow_page_lockless_end(struct kvm_vcpu *vcpu)
 {
 	/*
 	 * Make sure the write to vcpu->mode is not reordered in front of
-	 * reads to sptes.  If it does, kvm_commit_zap_page() can see us
+	 * reads to sptes.  If it does, kvm_mmu_commit_zap_page() can see us
 	 * OUTSIDE_GUEST_MODE and proceed to free the shadow page table.
 	 */
 	smp_store_release(&vcpu->mode, OUTSIDE_GUEST_MODE);

Queued, thanks.

Paolo