Skip to content
  • Nadav Amit's avatar
    KVM: x86: avoid write-tearing of TDP · b19ee2ff
    Nadav Amit authored
    
    
    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: default avatarNadav Amit <nadav.amit@gmail.com>
    Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
    b19ee2ff