Re: [Xen-devel] [PATCH 32/57] ARM: new VGIC: Add GICv2 world switch backend

2018-03-07 Thread Andre Przywara
Hi, On 07/03/18 12:10, Julien Grall wrote: > Hi Andre, > > On 03/05/2018 04:03 PM, Andre Przywara wrote: >> +void vgic_v2_fold_lr_state(struct vcpu *vcpu) >> +{ >> +    struct vgic_cpu *vgic_cpu = &vcpu->arch.vgic; >> +    unsigned int used_lrs = vcpu->arch.vgic.used_lrs; >> +    unsigned long fl

Re: [Xen-devel] [PATCH 32/57] ARM: new VGIC: Add GICv2 world switch backend

2018-03-07 Thread Julien Grall
Hi Andre, On 03/05/2018 04:03 PM, Andre Przywara wrote: +void vgic_v2_fold_lr_state(struct vcpu *vcpu) +{ +struct vgic_cpu *vgic_cpu = &vcpu->arch.vgic; +unsigned int used_lrs = vcpu->arch.vgic.used_lrs; +unsigned long flags; +unsigned int lr; + +if ( !used_lrs )/* No LRs

[Xen-devel] [PATCH 32/57] ARM: new VGIC: Add GICv2 world switch backend

2018-03-05 Thread Andre Przywara
Processing maintenance interrupts and accessing the list registers are dependent on the host's GIC version. Introduce vgic-v2.c to contain GICv2 specific functions. Implement the GICv2 specific code for syncing the emulation state into the VGIC registers. This also adds the hook to let Xen setup th