From: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxx>
vtpm_proxy_fops_set_locality() causes kernel buffers to be passed to
copy_from_user() and copy_to_user().
Factor out the crippled code away with help of an internal API for
managing struct proxy_dev instances.