|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 01/11] xen/arm: vpl011: Add pl011 uart emulation in Xen
On 23/03/17 09:14, Bhupinder Thakur wrote: .Hi Julien, Hi Bhupinder, On 5 March 2017 at 17:42, Julien Grall <julien.grall@xxxxxxx> wrote:Hi Bhupinder, On 21/02/17 11:25, Bhupinder Thakur wrote:diff --git a/xen/arch/arm/vpl011.c b/xen/arch/arm/vpl011.cLastly, what if vpl011_write_data is returning an error?Normally vpl011_write_data() should not fail since the guest should stop writing more data once the ring buffer goes full and TXFF bit is set in UARTFR. So there should always be space in the ring buffer for the next data when a mmio write happens. If the guest still writes when ring buffer is already full then data would be lost. If the return code is meaningless, then the function should be void. Also, the behavior should be documented. [...]
I think you would to pass the console domain id from the toolstack (see console->backend_domid).
Regardless the solution solution, nr_spis still need to be incremented. This field is used to know the number of SPIs exposed to the guest. Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |