[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1184203311.6005.664.camel@localhost.localdomain>
Date: Thu, 12 Jul 2007 11:21:51 +1000
From: Rusty Russell <rusty@...tcorp.com.au>
To: Christoph Hellwig <hch@....de>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org, linux-mm@...ck.org
Subject: Re: lguest, Re: -mm merge plans for 2.6.23
On Wed, 2007-07-11 at 14:23 +0200, Christoph Hellwig wrote:
> > lguest-export-symbols-for-lguest-as-a-module.patch
>
> __put_task_struct is one of those no way in hell should this be exported
> things because we don't want modules messing with task lifetimes.
>
> Fortunately I can't find anything actually using this in lguest, so
> it looks the issue has been solved in the meantime.
To do inter-guest (ie. inter-process) I/O you really have to make sure
the other side doesn't go away.
> I also have a rather bad feeling about exporting access_process_vm.
> This is the proverbial sledge hammer for access to user vm addresses
> and I'd rather keep it away from module programmers with "if all
> you have is a hammer ..." in mind.
>
> In lguest this is used by send_dma which from my short reading of the
> code seems to be the central IPC mechanism. The double copy here
> doesn't look very efficient to me either. Maybe some VM folks could
> look into a better way to archive this that might be both more
> efficient and not require the export.
It's not a double copy: it's a map & copy.
If KVM develops inter-guest I/O then this could all be extracted into a
helper function and made more efficient.
> Just started to reading this (again) so no useful comment here, but it
> would be nice if the code could follow CodingStyle and place the || and
> && at the end of the line in multiline conditionals instead of at the
> beginning of the new one.
Surprisingly, you have a point here. Since the key purpose of lguest is
as demonstration code, it meticulously match kernel style.
I shall immediately prepare a patch to convert the rest of the kernel to
the correct "&& at beginning of line" style.
Rusty.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists