]> xenbits.xensource.com Git - xen.git/commitdiff
ARM: new VGIC: Provide system register emulation stub
authorAndre Przywara <andre.przywara@linaro.org>
Wed, 7 Feb 2018 13:59:07 +0000 (13:59 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 28 Mar 2018 18:21:22 +0000 (11:21 -0700)
The Xen arch code traps system registers writes from the guest and will
relay anything GIC related to the VGIC.
Since this affects only GICv3 (which we don't yet emulate), provide a
stub implementation of vgic_emulate() for now.

Signed-off-by: Andre Przywara <andre.przywara@linaro.org>
Acked-by: Julien Grall <julien.grall@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/vgic/vgic.c

index fae7af81ce5b5c19b18546532e9cf8a84a6faeb7..5dcf70897e081b8898b7ad1304fcbf0fbcfcf577 100644 (file)
@@ -807,6 +807,13 @@ struct irq_desc *vgic_get_hw_irq_desc(struct domain *d, struct vcpu *v,
     return desc;
 }
 
+bool vgic_emulate(struct cpu_user_regs *regs, union hsr hsr)
+{
+    ASSERT(current->domain->arch.vgic.version == GIC_V3);
+
+    return false;
+}
+
 /*
  * was:
  *      int kvm_vgic_map_phys_irq(struct vcpu *vcpu, u32 virt_irq, u32 phys_irq)