Skip to content
Commit bb55e9b1 authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Paolo Bonzini
Browse files

arm/arm64: kvm: drop inappropriate use of kvm_is_mmio_pfn()



Instead of using kvm_is_mmio_pfn() to decide whether a host region
should be stage 2 mapped with device attributes, add a new static
function kvm_is_device_pfn() that disregards RAM pages with the
reserved bit set, as those should usually not be mapped as device
memory.

Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 6b50f540
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment