]> 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)
commita5b04e5fa486009838e71630f807dee6ed16ca45
treeaf63ba49b818361ebb370294bc66a5496a850f4b
parentbde1483efb89cebfbdb49cfeaa4533cff040a167
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