KVM: SVM: Change intercept_dr to generic intercepts
authorBabu Moger <babu.moger@amd.com>
Fri, 11 Sep 2020 19:28:12 +0000 (14:28 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2020 11:57:14 +0000 (07:57 -0400)
commit30abaa88382ce078cfc2ecebb61d9e0540fef24d
treed2743509ed57e9ebb4d48f13841b0a2464c30ae2
parent03bfeeb988a970995479eb6d108c398027ab7525
KVM: SVM: Change intercept_dr to generic intercepts

Modify intercept_dr 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_dr bits.

Signed-off-by: Babu Moger <babu.moger@amd.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Message-Id: <159985249255.11252.10000868032136333355.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