KVM: nSVM: Use common GPA helper to check for illegal CR3
authorSean Christopherson <seanjc@google.com>
Thu, 4 Feb 2021 00:01:11 +0000 (16:01 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Feb 2021 14:27:28 +0000 (09:27 -0500)
commitbbc2c63ddd51cd6d349e3fe0010f9b7b259e58ea
tree7410fdbb2381510cb6d27c7f6ca001dd70548ba8
parent636e8b733491135aacf9d1dfd23d9e77637f1198
KVM: nSVM: Use common GPA helper to check for illegal CR3

Replace an open coded check for an invalid CR3 with its equivalent
helper.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210204000117.3303214-7-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/nested.c