All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvmtool/arm: add support for vGICv3 and vITS
@ 2016-11-02 11:56 Vladimir Murzin
  2016-11-02 12:18 ` Andre Przywara
  0 siblings, 1 reply; 3+ messages in thread
From: Vladimir Murzin @ 2016-11-02 11:56 UTC (permalink / raw)
  To: kvmarm; +Cc: marc.zyngier, andre.przywara

KVM/arm got support for vGICv3 and vITS recently, so make use of it.

Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
---

This patch is against its/v8 branch at [1]

[1] git://www.linux-arm.org/kvmtool.git

 arm/aarch32/arm-cpu.c              |    2 +-
 arm/aarch32/include/kvm/kvm-arch.h |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arm/aarch32/arm-cpu.c b/arm/aarch32/arm-cpu.c
index 27a8e17..16bba55 100644
--- a/arm/aarch32/arm-cpu.c
+++ b/arm/aarch32/arm-cpu.c
@@ -12,7 +12,7 @@ static void generate_fdt_nodes(void *fdt, struct kvm *kvm)
 {
 	int timer_interrupts[4] = {13, 14, 11, 10};
 
-	gic__generate_fdt_nodes(fdt, IRQCHIP_GICV2);
+	gic__generate_fdt_nodes(fdt, kvm->cfg.arch.irqchip);
 	timer__generate_fdt_nodes(fdt, kvm, timer_interrupts);
 }
 
diff --git a/arm/aarch32/include/kvm/kvm-arch.h b/arm/aarch32/include/kvm/kvm-arch.h
index 1632e3c..99231f6 100644
--- a/arm/aarch32/include/kvm/kvm-arch.h
+++ b/arm/aarch32/include/kvm/kvm-arch.h
@@ -1,8 +1,8 @@
 #ifndef KVM__KVM_ARCH_H
 #define KVM__KVM_ARCH_H
 
-#define ARM_GIC_DIST_SIZE	0x1000
-#define ARM_GIC_CPUI_SIZE	0x2000
+#define ARM_GIC_DIST_SIZE	0x100000
+#define ARM_GIC_CPUI_SIZE	0x200000
 
 #define ARM_KERN_OFFSET(...)	0x8000
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-02 13:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-02 11:56 [PATCH] kvmtool/arm: add support for vGICv3 and vITS Vladimir Murzin
2016-11-02 12:18 ` Andre Przywara
2016-11-02 13:16   ` Vladimir Murzin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.