]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm/arm64: kvm: drop inappropriate use of kvm_is_mmio_pfn()
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 10 Nov 2014 08:33:55 +0000 (08:33 +0000)
committerJiri Slaby <jslaby@suse.cz>
Thu, 30 Apr 2015 09:15:12 +0000 (11:15 +0200)
commit529ad12b779bb522563156ba02fa67ec55c0de99
tree417c996b06547c04348587f045041a8d97decac0
parent5030e3c059fbcf6223a1d386f9b7a1aa940f140e
arm/arm64: kvm: drop inappropriate use of kvm_is_mmio_pfn()

commit 07a9748c78cfc39b54f06125a216b67b9c8f09ed upstream.

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: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/arm/kvm/mmu.c