Re: [Xen-devel] [PATCH 04/17 v5] xen/arm: vpl011: Add SBSA UART emulation in Xen

2017-06-23 Thread Julien Grall
Hi, On 06/23/2017 07:28 PM, Stefano Stabellini wrote: On Fri, 23 Jun 2017, Julien Grall wrote: Hi Stefano, On 22/06/17 23:53, Stefano Stabellini wrote: On Thu, 22 Jun 2017, Bhupinder Thakur wrote: +static void vpl011_write_data(struct domain *d, uint8_t data) +{ +unsigned long flags; +

Re: [Xen-devel] [PATCH 04/17 v5] xen/arm: vpl011: Add SBSA UART emulation in Xen

2017-06-23 Thread Stefano Stabellini
On Fri, 23 Jun 2017, Julien Grall wrote: > Hi Stefano, > > On 22/06/17 23:53, Stefano Stabellini wrote: > > On Thu, 22 Jun 2017, Bhupinder Thakur wrote: > > > +static void vpl011_write_data(struct domain *d, uint8_t data) > > > +{ > > > +unsigned long flags; > > > +struct vpl011 *vpl011 =

Re: [Xen-devel] [PATCH 04/17 v5] xen/arm: vpl011: Add SBSA UART emulation in Xen

2017-06-23 Thread Julien Grall
Hi Bhupinder, On 22/06/17 08:38, Bhupinder Thakur wrote: Add emulation code to emulate read/write access to pl011 registers and pl011 interrupts: - Emulate DR read/write by reading and writing from/to the IN and OUT ring buffers and raising an event to the backend when there is

Re: [Xen-devel] [PATCH 04/17 v5] xen/arm: vpl011: Add SBSA UART emulation in Xen

2017-06-23 Thread Julien Grall
Hi Stefano, On 22/06/17 23:53, Stefano Stabellini wrote: On Thu, 22 Jun 2017, Bhupinder Thakur wrote: +static void vpl011_write_data(struct domain *d, uint8_t data) +{ +unsigned long flags; +struct vpl011 *vpl011 = &d->arch.vpl011; +struct xencons_interface *intf = vpl011->ring_buf;

Re: [Xen-devel] [PATCH 04/17 v5] xen/arm: vpl011: Add SBSA UART emulation in Xen

2017-06-22 Thread Stefano Stabellini
On Thu, 22 Jun 2017, Bhupinder Thakur wrote: > Add emulation code to emulate read/write access to pl011 registers > and pl011 interrupts: > > - Emulate DR read/write by reading and writing from/to the IN > and OUT ring buffers and raising an event to the backend when > there is dat

[Xen-devel] [PATCH 04/17 v5] xen/arm: vpl011: Add SBSA UART emulation in Xen

2017-06-22 Thread Bhupinder Thakur
Add emulation code to emulate read/write access to pl011 registers and pl011 interrupts: - Emulate DR read/write by reading and writing from/to the IN and OUT ring buffers and raising an event to the backend when there is data in the OUT ring buffer and injecting an interrupt