[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] gnttab: Add gntdev device mappings for FreeBSD
It needs changes to "private.h" and other files too, so I will have to send another patch anyway. If you see in gntshr_core.c, you will notice we are passing -1 to an unsigned argument. This is also the reason why this bug doesn't have unintended consequences (data corruption on disk backends, etc.) This is repetitive. Please consider moving all the common bits to private.h with appropriate ifdef's around the code -- presumably you only want them for FreeBSD and Linux. I'll do this with my other patch that touches "private.h" and "linux.c". I'm using this patch to only introduce freebsd gnttab support. Please avoid using alloca. Yes, I know you copy this from linux.c, but I don't think this is a good idea because the error semantics is horrible -- if stack overflows program behaviour is undefined (!). Noted. And Done. Regards, Akshay On 11 August 2016 at 21:44, Wei Liu <wei.liu2@xxxxxxxxxx> wrote: On Thu, Aug 04, 2016 at 06:23:51PM +0530, Akshay Jaggi wrote: _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |