From: Michael S. Tsirkin Date: Mon, 1 Dec 2014 15:39:39 +0000 (+0200) Subject: vhost: switch to __get/__put_user exclusively X-Git-Tag: omap-for-v3.19/fixes-rc1~129^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64f7f0510c7e6f61eab080e3f51d314849f47ac1;p=pandora-kernel.git vhost: switch to __get/__put_user exclusively Most places in vhost can use __get/__put_user rather than get/put_user since addresses are pre-validated. This should be good for performance, but this also will help make code sparse-clean: get/put_user macros don't play well with __virtioXX bitwise tags. Switch to get/put_user to __ variants everywhere in vhost. There's one exception - for consistency switch that as well, and add an explicit access_ok check. Signed-off-by: Michael S. Tsirkin --- Reading git-diff-tree failed