host_intercept_exceptions is not used anywhere. Clean it up.

Signed-off-by: Babu Moger <babu.mo...@amd.com>
Reviewed-by: Jim Mattson <jmatt...@google.com>
---
 arch/x86/kvm/svm/nested.c |    2 --
 arch/x86/kvm/svm/svm.h    |    1 -
 2 files changed, 3 deletions(-)

diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nested.c
index c0f14432f15d..aa591120b4ab 100644
--- a/arch/x86/kvm/svm/nested.c
+++ b/arch/x86/kvm/svm/nested.c
@@ -116,8 +116,6 @@ void recalc_intercepts(struct vcpu_svm *svm)
        h = &svm->nested.hsave->control;
        g = &svm->nested.ctl;
 
-       svm->nested.host_intercept_exceptions = h->intercepts[EXCEPTION_VECTOR];
-
        for (i = 0; i < MAX_VECTORS; i++)
                c->intercepts[i] = h->intercepts[i];
 
diff --git a/arch/x86/kvm/svm/svm.h b/arch/x86/kvm/svm/svm.h
index 2fe26c2df3e4..0025d6f2641f 100644
--- a/arch/x86/kvm/svm/svm.h
+++ b/arch/x86/kvm/svm/svm.h
@@ -86,7 +86,6 @@ struct nested_state {
        u64 hsave_msr;
        u64 vm_cr_msr;
        u64 vmcb;
-       u32 host_intercept_exceptions;
 
        /* These are the merged vectors */
        u32 *msrpm;

Reply via email to