OSDN Git Service

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)
commitb5ec2e020b7015618781d313a4a6f93c2d2b8144
treeed640a6be8cf5524fe8f6cbb6065982b41306836
parent727a7e27cf88a261c5a0f14f4f9ee4d767352766
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