Replace PAGE_OFFSET with KVM_HVA_ERR_BAD, to facilitate the cscope when looking for where KVM_HVA_ERR_BAD is used. Every time I use cscope to query the functions that are impacted by the return value (KVM_HVA_ERR_BAD) of __gfn_to_hva_many(), I may miss kvm_is_error_hva(). Signed-off-by: Dongli Zhang <dongli.zhang@xxxxxxxxxx> --- include/linux/kvm_host.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 7e7fd25b09b3..4dc0300e7766 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -143,7 +143,7 @@ static inline bool is_noslot_pfn(kvm_pfn_t pfn) static inline bool kvm_is_error_hva(unsigned long addr) { - return addr >= PAGE_OFFSET; + return addr >= KVM_HVA_ERR_BAD; } #endif -- 2.34.1