summaryrefslogtreecommitdiffstats
path: root/Documentation/arm64
diff options
context:
space:
mode:
authorChristoffer Dall <christoffer.dall@linaro.org>2016-08-17 10:46:10 +0200
committerChristoffer Dall <christoffer.dall@linaro.org>2016-08-17 11:38:03 +0200
commit9ac715954682b23d293d910ad2697554171035e7 (patch)
treed0d273f5f6a82458ac18addcf29cd57ea7ceef45 /Documentation/arm64
parentKVM: arm64: ITS: avoid re-mapping LPIs (diff)
downloadlinux-9ac715954682b23d293d910ad2697554171035e7.tar.xz
linux-9ac715954682b23d293d910ad2697554171035e7.zip
KVM: arm/arm64: Change misleading use of is_error_pfn
When converting a gfn to a pfn, we call gfn_to_pfn_prot, which returns various kinds of error values. It turns out that is_error_pfn() only returns true when the gfn was found in a memory slot and could somehow not be used, but it does not return true if the gfn does not belong to any memory slot. Change use to is_error_noslot_pfn() which covers both cases. Note: Since we already check for kvm_is_error_hva(hva) explicitly in the caller of this function while holding the kvm->srcu lock protecting the memory slots, this should never be a problem, but nevertheless this change is warranted as it shows the intention of the code. Reported-by: James Hogan <james.hogan@imgtec.com> Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'Documentation/arm64')
0 files changed, 0 insertions, 0 deletions