ublk: support user copy
[linux-block.git] / drivers / virtio / virtio_anchor.c
CommitLineData
a603002e
JG
1// SPDX-License-Identifier: GPL-2.0-only
2#include <linux/virtio.h>
3#include <linux/virtio_anchor.h>
4
5bool virtio_require_restricted_mem_acc(struct virtio_device *dev)
6{
7 return true;
8}
9EXPORT_SYMBOL_GPL(virtio_require_restricted_mem_acc);
10
11static bool virtio_no_restricted_mem_acc(struct virtio_device *dev)
12{
13 return false;
14}
15
16bool (*virtio_check_mem_acc_cb)(struct virtio_device *dev) =
17 virtio_no_restricted_mem_acc;
18EXPORT_SYMBOL_GPL(virtio_check_mem_acc_cb);