From: Andre Przywara Date: Wed, 7 Feb 2018 13:59:07 +0000 (+0000) Subject: ARM: new VGIC: Provide system register emulation stub X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~276 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e5fe34fd23816601de17b0a428909c95acf01c93;p=xen.git ARM: new VGIC: Provide system register emulation stub 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 Acked-by: Julien Grall Acked-by: Stefano Stabellini --- diff --git a/xen/arch/arm/vgic/vgic.c b/xen/arch/arm/vgic/vgic.c index fae7af81ce..5dcf70897e 100644 --- a/xen/arch/arm/vgic/vgic.c +++ b/xen/arch/arm/vgic/vgic.c @@ -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)