| 1 | // SPDX-License-Identifier: GPL-2.0-only | 
|---|---|
| 2 | #include <linux/virtio.h> | 
| 3 | #include <linux/virtio_anchor.h> | 
| 4 | |
| 5 | bool virtio_require_restricted_mem_acc(struct virtio_device *dev) | 
| 6 | { | 
| 7 | return true; | 
| 8 | } | 
| 9 | EXPORT_SYMBOL_GPL(virtio_require_restricted_mem_acc); | 
| 10 | |
| 11 | static bool virtio_no_restricted_mem_acc(struct virtio_device *dev) | 
| 12 | { | 
| 13 | return false; | 
| 14 | } | 
| 15 | |
| 16 | bool (*virtio_check_mem_acc_cb)(struct virtio_device *dev) = | 
| 17 | virtio_no_restricted_mem_acc; | 
| 18 | EXPORT_SYMBOL_GPL(virtio_check_mem_acc_cb); | 
| 19 | 
