]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Move illegal GPA helper out of the MMU code
authorSean Christopherson <sean.j.christopherson@intel.com>
Thu, 24 Sep 2020 19:42:49 +0000 (12:42 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2020 11:57:27 +0000 (07:57 -0400)
commit04e2e7c7bcc89d0ca04280bab6dcfb2d1473a751
tree6f9e4f7c7a31dc904007435d3c182f6bcb78cb5d
parent1f9e74ef97c3b85c20f246b97ccaa6ba8ddea720
KVM: x86: Move illegal GPA helper out of the MMU code

Rename kvm_mmu_is_illegal_gpa() to kvm_vcpu_is_illegal_gpa() and move it
to cpuid.h so that's it's colocated with cpuid_maxphyaddr().  The helper
is not MMU specific and will gain a user that is completely unrelated to
the MMU in a future patch.

No functional change intended.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200924194250.19137-5-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.h
arch/x86/kvm/mmu.h
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/vmx/vmx.c