KVM: nVMX: Use INVALID_GPA for pointers used in nVMX.
authorYu Zhang <yu.c.zhang@linux.intel.com>
Wed, 29 Sep 2021 17:51:53 +0000 (01:51 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 30 Sep 2021 08:27:02 +0000 (04:27 -0400)
commit64c785082c21a88d3c25c2b95f16fe29eb5ee862
tree26a18b7351ccd7b789e79477eb06ea4c27d44944
parent7b0035eaa7dab9fd33d6658ad6a755024bdce26c
KVM: nVMX: Use INVALID_GPA for pointers used in nVMX.

Clean up nested.c and vmx.c by using INVALID_GPA instead of "-1ull",
to denote an invalid address in nested VMX. Affected addresses are
the ones of VMXON region, current VMCS, VMCS link pointer, virtual-
APIC page, ENCLS-exiting bitmap, and IO bitmap etc.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Yu Zhang <yu.c.zhang@linux.intel.com>
Message-Id: <20210929175154.11396-2-yu.c.zhang@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/vmx/vmx.c