> On 28. Jul 2025, at 14:15, Mads Ynddal <m...@ynddal.dk> wrote: > > >> + /* Redistributor state (one per CPU) */ >> + >> + for (ncpu = 0; ncpu < s->num_cpu; ncpu++) { >> + GICv3CPUState *c = &s->cpu[ncpu]; >> + hv_vcpu_t vcpu = c->cpu->accel->fd; >> + >> + reg = c->gicr_waker; >> + hv_gic_set_redistributor_reg(vcpu, >> HV_GIC_REDISTRIBUTOR_REG_GICR_IGROUPR0, reg); >> + > > Sorry if I'm belaboring the obvious, but I think you need to call these > from the owning thread of the CPU. This is also stated in Apple's docs > (some are documented; some are not!). > > I had to do that in the branch I was working on. You should check the > return of the functions 'hv_gic_...'. They give an error when called > from the wrong thread. > > Could this be related to commit "hw/intc: hvf: add migration blocker > when using multiple vCPUs with the Apple GIC”? Yes that was it.
- [PATCH v4 00/15] HVF: Add support for platform vGIC and n... Mohamed Mediouni
- [PATCH v4 04/15] hw/intc: Add hvf vGIC interrupt con... Mohamed Mediouni
- Re: [PATCH v4 04/15] hw/intc: Add hvf vGIC inter... Mads Ynddal
- Re: [PATCH v4 04/15] hw/intc: Add hvf vGIC i... Mohamed Mediouni
- Re: [PATCH v4 04/15] hw/intc: Add hvf vGIC i... Mohamed Mediouni
- [PATCH v4 07/15] target/arm: hvf: pass through CNTHC... Mohamed Mediouni
- [PATCH v4 08/15] hw/arm: virt: add GICv2m for the ca... Mohamed Mediouni
- [PATCH v4 01/15] accel, hw/arm, include/system/hvf: ... Mohamed Mediouni
- [PATCH v4 14/15] hvf: sync registers used at EL2 Mohamed Mediouni
- [PATCH v4 05/15] hvf: save/restore Apple GIC state Mohamed Mediouni
- [PATCH v4 13/15] hw/intc: hvf: sync state in c->i... Mohamed Mediouni
- [PATCH v4 03/15] target/arm: hvf: add asserts for co... Mohamed Mediouni
- [PATCH v4 06/15] hw/arm, target/arm: nested virtuali... Mohamed Mediouni
- [PATCH v4 02/15] target/arm: hvf: instantiate GIC ea... Mohamed Mediouni
- [PATCH v4 09/15] target/arm: hvf: use LOG_UNIMP for ... Mohamed Mediouni