]> git.baikalelectronics.ru Git - kernel.git/commit
arm/arm64: KVM: add opaque private pointer to MMIO data
authorAndre Przywara <andre.przywara@arm.com>
Thu, 13 Nov 2014 16:21:35 +0000 (16:21 +0000)
committerChristoffer Dall <christoffer.dall@linaro.org>
Tue, 20 Jan 2015 17:25:30 +0000 (18:25 +0100)
commit0e7937397964b24117aa5bb0424dae58a2253bdb
treee573eca5d001e396134f2bd2afd596ebbc4f479f
parentcbca8d2a641cd205988d6fdeca529a9f7732a6bb
arm/arm64: KVM: add opaque private pointer to MMIO data

For a GICv2 there is always only one (v)CPU involved: the one that
does the access. On a GICv3 the access to a CPU redistributor is
memory-mapped, but not banked, so the (v)CPU affected is determined by
looking at the MMIO address region being accessed.
To allow passing the affected CPU into the accessors later, extend
struct kvm_exit_mmio to add an opaque private pointer parameter.
The current GICv2 emulation just does not use it.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/include/asm/kvm_mmio.h
arch/arm64/include/asm/kvm_mmio.h
virt/kvm/arm/vgic.c