Lines Matching refs:log_base
323 vq->log_base = NULL; in vhost_vq_reset()
717 static bool log_access_ok(void __user *log_base, u64 addr, unsigned long sz) in log_access_ok() argument
722 if (a > ULONG_MAX - (unsigned long)log_base || in log_access_ok()
723 a + (unsigned long)log_base > ULONG_MAX) in log_access_ok()
726 return access_ok(log_base + a, in log_access_ok()
743 static bool vq_memory_access_ok(void __user *log_base, struct vhost_iotlb *umem, in vq_memory_access_ok() argument
760 else if (log_all && !log_access_ok(log_base, in vq_memory_access_ok()
795 ok = vq_memory_access_ok(d->vqs[i]->log_base, in memory_access_ok()
1397 void __user *log_base, in vq_log_used_access_ok() argument
1406 return !log_used || log_access_ok(log_base, log_addr, in vq_log_used_access_ok()
1413 void __user *log_base) in vq_log_access_ok() argument
1415 return vq_memory_access_ok(log_base, vq->umem, in vq_log_access_ok()
1417 vq_log_used_access_ok(vq, log_base, vq->log_used, vq->log_addr); in vq_log_access_ok()
1424 if (!vq_log_access_ok(vq, vq->log_base)) in vhost_vq_access_ok()
1556 if (!vq_log_used_access_ok(vq, vq->log_base, in vhost_vring_set_addr()
1800 vq->log_base = base; in vhost_dev_ioctl()
1854 static int log_write(void __user *log_base, in log_write() argument
1864 u64 base = (u64)(unsigned long)log_base; in log_write()
1900 r = log_write(vq->log_base, in log_write_hva()
1925 return log_write(vq->log_base, vq->log_addr + used_offset, len); in log_used()
1962 r = log_write(vq->log_base, log[i].addr, l); in vhost_log_write()