]> git.proxmox.com Git - mirror_ubuntu-artful-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)
commit332518706195007f9fbafa69652aa5b3cf72df24
tree5f4c7f0f3834a4c38a5d9e6abf5a209f407ee503
parent405a353a0e20d09090ad96147da6afad9b0ce056
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: ae1e2d1082ae ("kvm: nVMX: support EPT accessed/dirty bits")
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/vmx.c