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)
commit4bda0e97868a95553ba71d87f593756e1ffd654b
treeaf63ba49b818361ebb370294bc66a5496a850f4b
parent2732be90235347a3be4babdc9f88a1ea93970b0b
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