]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: fix AD condition when handling EPT violation
authorRadim Krčmář <rkrcmar@redhat.com>
Thu, 13 Apr 2017 16:39:18 +0000 (18:39 +0200)
committerRadim Krčmář <rkrcmar@redhat.com>
Thu, 13 Apr 2017 17:36:55 +0000 (19:36 +0200)
commit48107bd0c85451a48773037b999d9630ef5eee42
tree5f4c7f0f3834a4c38a5d9e6abf5a209f407ee503
parent86b567ba9056564308ba08dbef5b282ce29e4de3
KVM: nVMX: fix AD condition when handling EPT violation

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: 2e868388f912 ("kvm: nVMX: support EPT accessed/dirty bits")
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/vmx.c