summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLan Tianyu <tianyu.lan@intel.com>2016-03-13 11:10:30 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2016-03-22 16:38:37 +0100
commit489153c746746fc44b1e2fd184248dee8aebbaff (patch)
treef41b7784e4b256ddb8640e6e2755abfe8f917ca4
parent0f127d12e44c13d2f90e5c613490e70ddb1a5e08 (diff)
downloadop-kernel-dev-489153c746746fc44b1e2fd184248dee8aebbaff.zip
op-kernel-dev-489153c746746fc44b1e2fd184248dee8aebbaff.tar.gz
KVM/PPC: update the comment of memory barrier in the kvmppc_prepare_to_enter()
The barrier also orders the write to mode from any reads to the page tables done and so update the comment. Signed-off-by: Lan Tianyu <tianyu.lan@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--arch/powerpc/kvm/powerpc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c
index 19aa59b..6a68730 100644
--- a/arch/powerpc/kvm/powerpc.c
+++ b/arch/powerpc/kvm/powerpc.c
@@ -96,6 +96,9 @@ int kvmppc_prepare_to_enter(struct kvm_vcpu *vcpu)
* so we don't miss a request because the requester sees
* OUTSIDE_GUEST_MODE and assumes we'll be checking requests
* before next entering the guest (and thus doesn't IPI).
+ * This also orders the write to mode from any reads
+ * to the page tables done while the VCPU is running.
+ * Please see the comment in kvm_flush_remote_tlbs.
*/
smp_mb();
OpenPOWER on IntegriCloud