Enable the VGIC operation by properly initialising the registers
in the hypervisor GIC interface.
This is based on Linux commit
f7b6985cc3d0, written by Eric Auger.
Signed-off-by: Andre Przywara <andre.przywara@linaro.org>
Acked-by: Julien Grall <julien.grall@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
gic_hw_ops->write_lr(lr, &lr_val);
}
+void vgic_v2_enable(struct vcpu *vcpu)
+{
+ /* Get the show on the road... */
+ gic_hw_ops->update_hcr_status(GICH_HCR_EN, true);
+}
+
/*
* Local variables:
* mode: C
void vgic_v2_fold_lr_state(struct vcpu *vcpu);
void vgic_v2_populate_lr(struct vcpu *vcpu, struct vgic_irq *irq, int lr);
void vgic_v2_set_underflow(struct vcpu *vcpu);
+void vgic_v2_enable(struct vcpu *vcpu);
int vgic_register_dist_iodev(struct domain *d, gfn_t dist_base_fn,
enum vgic_type);