]> git.baikalelectronics.ru Git - kernel.git/commit
arm/arm64: KVM: add 'writable' parameter to kvm_phys_addr_ioremap
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 17 Sep 2014 21:56:18 +0000 (14:56 -0700)
committerChristoffer Dall <christoffer.dall@linaro.org>
Fri, 10 Oct 2014 11:07:37 +0000 (13:07 +0200)
commitd899a39ffda6624e4d8c2b613d865c7749fcf09a
treea2ec51729aae4cc741dca4c264a723362b32db14
parent5d1e618774f1ce4cee72d3803c004a28dceb1201
arm/arm64: KVM: add 'writable' parameter to kvm_phys_addr_ioremap

Add support for read-only MMIO passthrough mappings by adding a
'writable' parameter to kvm_phys_addr_ioremap. For the moment,
mappings will be read-write even if 'writable' is false, but once
the definition of PAGE_S2_DEVICE gets changed, those mappings will
be created read-only.

Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/include/asm/kvm_mmu.h
arch/arm/kvm/mmu.c
arch/arm64/include/asm/kvm_mmu.h
virt/kvm/arm/vgic.c