KVM: SVM: Define actual size of IOPM and MSRPM tables
authorKrish Sadhukhan <krish.sadhukhan@oracle.com>
Mon, 12 Apr 2021 21:56:05 +0000 (17:56 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 20 Apr 2021 08:18:56 +0000 (04:18 -0400)
commit47903dc10e7ebb876c9a0f0522cc07a71c10273f
treeabf232141e3155ac885236fe7688efe6b49c78a1
parentfe7e948837f312d87853b3fce743795d1ae3715a
KVM: SVM: Define actual size of IOPM and MSRPM tables

Define the actual size of the IOPM and MSRPM tables so that the actual size
can be used when initializing them and when checking the consistency of their
physical address.
These #defines are placed in svm.h so that they can be shared.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Message-Id: <20210412215611.110095-2-krish.sadhukhan@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h