Re: [Xen-devel] [RFC PATCH 27/49] ARM: new VGIC: Add MMIO handling framework

2018-02-16 Thread Julien Grall
Hi Andre, On 13/02/18 18:17, Andre Przywara wrote: On 13/02/18 16:52, Julien Grall wrote: +struct vgic_register_region { +    unsigned int reg_offset; +    unsigned int len; +    unsigned int bits_per_irq; +    unsigned int access_flags; +    union +    { +    unsigned long (*read)(struct

Re: [Xen-devel] [RFC PATCH 27/49] ARM: new VGIC: Add MMIO handling framework

2018-02-13 Thread Andre Przywara
Hi, On 13/02/18 16:52, Julien Grall wrote: > Hi Andre,7 > > On 09/02/18 14:39, Andre Przywara wrote: >> Add an MMIO handling framework to the VGIC emulation: >> Each register is described by its offset, size (or number of bits per >> IRQ, if applicable) and the read/write handler functions. We

Re: [Xen-devel] [RFC PATCH 27/49] ARM: new VGIC: Add MMIO handling framework

2018-02-13 Thread Julien Grall
Hi Andre,7 On 09/02/18 14:39, Andre Przywara wrote: Add an MMIO handling framework to the VGIC emulation: Each register is described by its offset, size (or number of bits per IRQ, if applicable) and the read/write handler functions. We provide initialization macros to describe each GIC