[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] KVM: dirty ring: add missing memory barrier
From: |
Peter Xu |
Subject: |
Re: [PATCH v2] KVM: dirty ring: add missing memory barrier |
Date: |
Tue, 30 Aug 2022 10:24:36 -0400 |
On Sat, Aug 27, 2022 at 10:22:18AM +0200, Paolo Bonzini wrote:
> The KVM_DIRTY_GFN_F_DIRTY flag ensures that the entry is valid. If
> the read of the fields are not ordered after the read of the flag,
> QEMU might see stale values.
>
> Cc: Peter Xu <peterx@redhat.com>
> Cc: Gavin Shan <gshan@redhat.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Thanks!
--
Peter Xu