]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nSVM: do not change host intercepts while nested VM is running
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 4 Mar 2020 17:57:49 +0000 (12:57 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 16:58:53 +0000 (17:58 +0100)
commit944567345e0e0f33d6a78bd675371cda6b7a7b0a
treeed640a6be8cf5524fe8f6cbb6065982b41306836
parent691a6b87b95a7e4a5bc00adbe0bb0bcac3744f31
KVM: nSVM: do not change host intercepts while nested VM is running

Instead of touching the host intercepts so that the bitwise OR in
recalc_intercepts just works, mask away uninteresting intercepts
directly in recalc_intercepts.

This is cleaner and keeps the logic in one place even for intercepts
that can change even while L2 is running.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c