Re: [PATCH] KVM: x86: avoid write-tearing of TDP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2016-05-11 08:04-0700, Nadav Amit:
> In theory, nothing prevents the compiler from write-tearing PTEs, or
> split PTE writes. These partially-modified PTEs can be fetched by other
> cores and cause mayhem. I have not really encountered such case in
> real-life, but it does seem possible.
> 
> For example, the compiler may try to do something creative for
> kvm_set_pte_rmapp() and perform multiple writes to the PTE.
> 
> Signed-off-by: Nadav Amit <nadav.amit@xxxxxxxxx>
> ---

We don't lose anything by preventing tearing even if it wasn't possible.
Applied,

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux