diff options
-rw-r--r-- | drivers/vhost/vhost.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h index c5d950cf7627..819296332913 100644 --- a/drivers/vhost/vhost.h +++ b/drivers/vhost/vhost.h | |||
@@ -95,8 +95,11 @@ struct vhost_uaddr { | |||
95 | bool write; | 95 | bool write; |
96 | }; | 96 | }; |
97 | 97 | ||
98 | #define VHOST_ARCH_CAN_ACCEL_UACCESS defined(CONFIG_MMU_NOTIFIER) && \ | 98 | #if defined(CONFIG_MMU_NOTIFIER) && ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE == 0 |
99 | ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE == 0 | 99 | #define VHOST_ARCH_CAN_ACCEL_UACCESS 1 |
100 | #else | ||
101 | #define VHOST_ARCH_CAN_ACCEL_UACCESS 0 | ||
102 | #endif | ||
100 | 103 | ||
101 | /* The virtqueue structure describes a queue attached to a device. */ | 104 | /* The virtqueue structure describes a queue attached to a device. */ |
102 | struct vhost_virtqueue { | 105 | struct vhost_virtqueue { |