vhost_memory
static long vhost_set_memory(struct vhost_dev *d, struct vhost_memory __user *m)
struct vhost_memory mem, *newmem;
unsigned long size = offsetof(struct vhost_memory, regions);
#define VHOST_SET_MEM_TABLE _IOW(VHOST_VIRTIO, 0x03, struct vhost_memory)
#define VHOST_SET_MEM_TABLE _IOW(VHOST_VIRTIO, 0x03, struct vhost_memory)
dev->mem = malloc(offsetof(struct vhost_memory, regions) +
memset(dev->mem, 0, offsetof(struct vhost_memory, regions) +
struct vhost_memory *mem;
dev->mem = malloc(offsetof(struct vhost_memory, regions) +
memset(dev->mem, 0, offsetof(struct vhost_memory, regions) +
struct vhost_memory *mem;