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)
commitc45ad7229d139ad48e894a271f8df6975e53d12e
tree0211835bcbb626176211c45fe36a2c33ac155c2b
parenta90c1ed9f11dbc3d37664a8561e50e3f3695c539
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