Searched refs:vhost_memory (Results 1 – 4 of 4) sorted by relevance
/linux-2.6.39/include/linux/ |
D | vhost.h | 60 struct vhost_memory { struct 84 #define VHOST_SET_MEM_TABLE _IOW(VHOST_VIRTIO, 0x03, struct vhost_memory) argument
|
/linux-2.6.39/tools/virtio/ |
D | virtio_test.c | 37 struct vhost_memory *mem; 118 dev->mem = malloc(offsetof(struct vhost_memory, regions) + in vdev_info_init() 121 memset(dev->mem, 0, offsetof(struct vhost_memory, regions) + in vdev_info_init()
|
/linux-2.6.39/drivers/vhost/ |
D | vhost.c | 374 struct vhost_memory *memory; in vhost_dev_reset_owner() 377 memory = kmalloc(offsetof(struct vhost_memory, regions), GFP_KERNEL); in vhost_dev_reset_owner() 445 static int vq_memory_access_ok(void __user *log_base, struct vhost_memory *mem, in vq_memory_access_ok() 471 static int memory_access_ok(struct vhost_dev *d, struct vhost_memory *mem, in memory_access_ok() 508 struct vhost_memory *mp; in vhost_log_access_ok() 519 struct vhost_memory *mp; in vq_log_access_ok() 538 static long vhost_set_memory(struct vhost_dev *d, struct vhost_memory __user *m) in vhost_set_memory() 540 struct vhost_memory mem, *newmem, *oldmem; in vhost_set_memory() 541 unsigned long size = offsetof(struct vhost_memory, regions); in vhost_set_memory() 862 static const struct vhost_memory_region *find_region(struct vhost_memory *mem, in find_region() [all …]
|
D | vhost.h | 117 struct vhost_memory __rcu *memory;
|