Skip to content
Commit 64f7f051 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

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: default avatarMichael S. Tsirkin <mst@redhat.com>


parent bf995734
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