Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Lan Tianyu and committed by
Paolo Bonzini
489153c7 0f127d12

+3
+3
arch/powerpc/kvm/powerpc.c
··· 96 96 * so we don't miss a request because the requester sees 97 97 * OUTSIDE_GUEST_MODE and assumes we'll be checking requests 98 98 * before next entering the guest (and thus doesn't IPI). 99 + * This also orders the write to mode from any reads 100 + * to the page tables done while the VCPU is running. 101 + * Please see the comment in kvm_flush_remote_tlbs. 99 102 */ 100 103 smp_mb(); 101 104