Commit e27810f1 authored by Rusty Russell's avatar Rusty Russell

lguest: use ioremap_cache, not ioremap

Thanks to Jon Corbet & LWN.  Only took me a day to join the dots.

Host->Guest netcat before (with unnecessily large receive buffers):
1073741824 bytes (1.1 GB) copied, 24.7528 seconds, 43.4 MB/s

After:
1073741824 bytes (1.1 GB) copied, 17.6369 seconds, 60.9 MB/s
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 0a2ce2ff
...@@ -27,7 +27,7 @@ static unsigned int dev_index; ...@@ -27,7 +27,7 @@ static unsigned int dev_index;
* __iomem to quieten sparse. */ * __iomem to quieten sparse. */
static inline void *lguest_map(unsigned long phys_addr, unsigned long pages) static inline void *lguest_map(unsigned long phys_addr, unsigned long pages)
{ {
return (__force void *)ioremap(phys_addr, PAGE_SIZE*pages); return (__force void *)ioremap_cache(phys_addr, PAGE_SIZE*pages);
} }
static inline void lguest_unmap(void *addr) static inline void lguest_unmap(void *addr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment