]> 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)
commit4b3837917b06cfca979b5caf3685cbb66d41cb47
treeed640a6be8cf5524fe8f6cbb6065982b41306836
parent7dcb1c8ed41580a378696a9f2fcef7591f1709cd
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