]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Introduce vmcb_(set_intercept/clr_intercept/_is_intercept)
authorBabu Moger <babu.moger@amd.com>
Fri, 11 Sep 2020 19:27:58 +0000 (14:27 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2020 11:57:13 +0000 (07:57 -0400)
commit1b998301b5e0c0d89e09f95b5b65df64f2cf3e1c
tree0211835bcbb626176211c45fe36a2c33ac155c2b
parent1a8284a3238de58ae66b2e8bc990f21e611c58a4
KVM: SVM: Introduce vmcb_(set_intercept/clr_intercept/_is_intercept)

This is in preparation for the future intercept vector additions.

Add new functions vmcb_set_intercept, vmcb_clr_intercept and vmcb_is_intercept
using kernel APIs __set_bit, __clear_bit and test_bit espectively.

Signed-off-by: Babu Moger <babu.moger@amd.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Message-Id: <159985247876.11252.16039238014239824460.stgit@bmoger-ubuntu>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/svm.h
arch/x86/kvm/svm/nested.c
arch/x86/kvm/svm/svm.h