• Radim Krčmář's avatar
    KVM: nVMX: fix AD condition when handling EPT violation · 33251870
    Radim Krčmář authored
    I have introduced this bug when applying and simplifying Paolo's patch
    as we agreed on the list.  The original was "x &= ~y; if (z) x |= y;".
    
    Here is the story of a bad workflow:
    
      A maintainer was already testing with the intended change, but it was
      applied only to a testing repo on a different machine.  When the time
      to push tested patches to kvm/next came, he realized that this change
      was missing and quickly added it to the maintenance repo, didn't test
      again (because the change is trivial, right), and pushed the world to
      fire.
    
    Fixes: ae1e2d10 ("kvm: nVMX: support EPT accessed/dirty bits")
    Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
    33251870
vmx.c 328 KB