]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita8461a5fc68b0a9f8ae1827d976df06ff46c481b
treeabf232141e3155ac885236fe7688efe6b49c78a1
parent912792a58136093113a55e2b87dff0854327b26e
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