]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Add a helper to check for a legal GPA
authorSean Christopherson <seanjc@google.com>
Thu, 4 Feb 2021 00:01:08 +0000 (16:01 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Feb 2021 14:27:27 +0000 (09:27 -0500)
commit0940883ae608b73d1a15d26a0e3174f1b94fd2cf
treeaf63ba49b818361ebb370294bc66a5496a850f4b
parent944778e326595495753ad4a7ed8997c92753524f
KVM: x86: Add a helper to check for a legal GPA

Add a helper to check for a legal GPA, and use it to consolidate code
in existing, related helpers.  Future patches will extend usage to
VMX and SVM code, properly handle exceptions to the maxphyaddr rule, and
add more helpers.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210204000117.3303214-4-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.h