OSDN Git Service

KVM: SVM: Modify intercept_exceptions to generic intercepts
authorBabu Moger <babu.moger@amd.com>
Fri, 11 Sep 2020 19:28:20 +0000 (14:28 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2020 11:57:14 +0000 (07:57 -0400)
commit9780d51dc2af1c02bed9687822ba0d6df955c302
treead858472943944e0891f3d33502217c9522eb8fd
parent30abaa88382ce078cfc2ecebb61d9e0540fef24d
KVM: SVM: Modify intercept_exceptions to generic intercepts

Modify intercept_exceptions to generic intercepts in vmcb_control_area. Use
the generic vmcb_set_intercept, vmcb_clr_intercept and vmcb_is_intercept to
set/clear/test the intercept_exceptions bits.

Signed-off-by: Babu Moger <babu.moger@amd.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Message-Id: <159985250037.11252.1361972528657052410.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.c
arch/x86/kvm/svm/svm.h