Home
last modified time | relevance | path

Searched refs:vhost_memory (Results 1 – 6 of 6) sorted by relevance

/linux-4.1.27/drivers/vhost/
Dvhost.h103 struct vhost_memory *memory;
112 struct vhost_memory *memory;
128 struct vhost_memory *vhost_dev_reset_owner_prepare(void);
129 void vhost_dev_reset_owner(struct vhost_dev *, struct vhost_memory *);
Dvhost.c410 struct vhost_memory *vhost_dev_reset_owner_prepare(void) in vhost_dev_reset_owner_prepare()
412 return kmalloc(offsetof(struct vhost_memory, regions), GFP_KERNEL); in vhost_dev_reset_owner_prepare()
417 void vhost_dev_reset_owner(struct vhost_dev *dev, struct vhost_memory *memory) in vhost_dev_reset_owner()
500 static int vq_memory_access_ok(void __user *log_base, struct vhost_memory *mem, in vq_memory_access_ok()
526 static int memory_access_ok(struct vhost_dev *d, struct vhost_memory *mem, in memory_access_ok()
593 static long vhost_set_memory(struct vhost_dev *d, struct vhost_memory __user *m) in vhost_set_memory()
595 struct vhost_memory mem, *newmem, *oldmem; in vhost_set_memory()
596 unsigned long size = offsetof(struct vhost_memory, regions); in vhost_set_memory()
914 static const struct vhost_memory_region *find_region(struct vhost_memory *mem, in find_region()
1069 struct vhost_memory *mem; in translate_desc()
Dtest.c223 struct vhost_memory *memory; in vhost_test_reset_owner()
Dnet.c972 struct vhost_memory *memory; in vhost_net_reset_owner()
/linux-4.1.27/include/uapi/linux/
Dvhost.h60 struct vhost_memory { struct
84 #define VHOST_SET_MEM_TABLE _IOW(VHOST_VIRTIO, 0x03, struct vhost_memory) argument
/linux-4.1.27/tools/virtio/
Dvirtio_test.c42 struct vhost_memory *mem;
125 dev->mem = malloc(offsetof(struct vhost_memory, regions) + in vdev_info_init()
128 memset(dev->mem, 0, offsetof(struct vhost_memory, regions) + in vdev_info_init()