]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Add a helper to handle legal GPA with an alignment requirement
authorSean Christopherson <seanjc@google.com>
Thu, 4 Feb 2021 00:01:09 +0000 (16:01 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Feb 2021 14:27:27 +0000 (09:27 -0500)
commita25cb8d8a4561a08fc0126a6f6b1d6bf582fbc49
treec5f52ff309825abfa9242b6497ce3ed3608e551f
parent0940883ae608b73d1a15d26a0e3174f1b94fd2cf
KVM: x86: Add a helper to handle legal GPA with an alignment requirement

Add a helper to genericize checking for a legal GPA that also must
conform to an arbitrary alignment, and use it in the existing
page_address_valid().  Future patches will replace open coded variants
in VMX and SVM.

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