[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070511065613.GB25182@infradead.org>
Date: Fri, 11 May 2007 07:56:13 +0100
From: Christoph Hellwig <hch@...radead.org>
To: Rusty Russell <rusty@...tcorp.com.au>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
lkml - Kernel Mailing List <linux-kernel@...r.kernel.org>,
virtualization <virtualization@...ts.linux-foundation.org>,
Jeff Garzik <jeff@...zik.org>,
Christoph Hellwig <hch@...radead.org>
Subject: Re: [PATCH 2/5] lguest guest feedback tidyups
On Fri, May 11, 2007 at 11:21:30AM +1000, Rusty Russell wrote:
> 1) send-dma and bind-dma hypercall wrappers for drivers to use,
> 2) formalization of the convention that devices can use the irq
> corresponding to their index on the lguest_bus.
> 3) ___force to shut up sparse: guests *can* use ioremap as virtual mem.
No, they can't. Even if in your case the underlying address spaces
happen to be the same anything returned by ioremap must use the proper
accessors. That's the whole point of having this separation, otherwise
you wouldn't need to use ioremap at all. So instead of sprinkling cast
around add lguest_read*/lguest_write* accessors that do the __force cast
once and make sure the ioremap return value is always accessed using those.
-
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