Re: [PATCH] KVM: arm/arm64: vgic: Restrict setting irq->targets only in GICv2

2019-04-04 Thread Zenghui Yu
Hi Andre, Thanks for looking into this. On Thu, Apr 4, 2019 at 9:17 PM Andre Przywara wrote: > > On Thu, 4 Apr 2019 12:30:15 + > Zenghui Yu wrote: > > Hi, > > > Commit ad275b8bb1e6 ("KVM: arm/arm64: vgic-new: vgic_init: implement > > vgic_init") had set irq->targets in kvm_vgic_vcpu_init(),

Re: [PATCH] KVM: arm/arm64: vgic: Restrict setting irq->targets only in GICv2

2019-04-04 Thread Andre Przywara
On Thu, 4 Apr 2019 12:30:15 + Zenghui Yu wrote: Hi, > Commit ad275b8bb1e6 ("KVM: arm/arm64: vgic-new: vgic_init: implement > vgic_init") had set irq->targets in kvm_vgic_vcpu_init(), regardless of > the GIC architecture (v2 or v3). When the number of vcpu reaches 32 > (in v3), UBSAN will com

[PATCH] KVM: arm/arm64: vgic: Restrict setting irq->targets only in GICv2

2019-04-04 Thread Zenghui Yu
Commit ad275b8bb1e6 ("KVM: arm/arm64: vgic-new: vgic_init: implement vgic_init") had set irq->targets in kvm_vgic_vcpu_init(), regardless of the GIC architecture (v2 or v3). When the number of vcpu reaches 32 (in v3), UBSAN will complain about it.