summaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/kvm_mmio.h
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2014-11-13 19:21:35 +0300
committerChristoffer Dall <christoffer.dall@linaro.org>2015-01-20 20:25:30 +0300
commit9fedf146778e6d1c26319ebaf56131a4f3a6be03 (patch)
treee573eca5d001e396134f2bd2afd596ebbc4f479f /arch/arm64/include/asm/kvm_mmio.h
parent1d916229e348c628ddc9cf97528e76d13f52c122 (diff)
downloadlinux-9fedf146778e6d1c26319ebaf56131a4f3a6be03.tar.xz
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>
Diffstat (limited to 'arch/arm64/include/asm/kvm_mmio.h')
-rw-r--r--arch/arm64/include/asm/kvm_mmio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/kvm_mmio.h b/arch/arm64/include/asm/kvm_mmio.h
index fc2f689c0694..9f52beb7cb13 100644
--- a/arch/arm64/include/asm/kvm_mmio.h
+++ b/arch/arm64/include/asm/kvm_mmio.h
@@ -40,6 +40,7 @@ struct kvm_exit_mmio {
u8 data[8];
u32 len;
bool is_write;
+ void *private;
};
static inline void kvm_prepare_mmio(struct kvm_run *run,