search for: iov_discard_front

Displaying 20 results from an estimated 30 matches for "iov_discard_front".

2013 Jan 22
5
[QEMU PATCH v5 0/3] virtio-net: fix of ctrl commands
Currently virtio-net code relys on the layout of descriptor, this patchset removed the assumptions and introduced a control command to set mac address. Last patch is a trivial renaming. V2: check guest's iov_len V3: fix of migration compatibility make mac field in config space read-only when new feature is acked V4: add fix of descriptor layout assumptions, trivial rename V5: fix
2013 Jan 22
5
[QEMU PATCH v5 0/3] virtio-net: fix of ctrl commands
Currently virtio-net code relys on the layout of descriptor, this patchset removed the assumptions and introduced a control command to set mac address. Last patch is a trivial renaming. V2: check guest's iov_len V3: fix of migration compatibility make mac field in config space read-only when new feature is acked V4: add fix of descriptor layout assumptions, trivial rename V5: fix
2013 Jan 19
8
[QEMU PATCH v4 0/3] virtio-net: fix of ctrl commands
From: Amos Kong <akong at redhat.com> Currently virtio-net code relys on the layout of descriptor, this patchset removed the assumptions and introduced a control command to set mac address. Last patch is a trivial renaming. V2: check guest's iov_len V3: fix of migration compatibility make mac field in config space read-only when new feature is acked V4: add fix of descriptor layout
2013 Jan 19
8
[QEMU PATCH v4 0/3] virtio-net: fix of ctrl commands
From: Amos Kong <akong at redhat.com> Currently virtio-net code relys on the layout of descriptor, this patchset removed the assumptions and introduced a control command to set mac address. Last patch is a trivial renaming. V2: check guest's iov_len V3: fix of migration compatibility make mac field in config space read-only when new feature is acked V4: add fix of descriptor layout
2016 Jul 28
2
[PATCH 6/7] qemu: Implement virtio-pstore device
...; > > +{ > > > + char path[PATH_MAX]; > > > + int fd; > > > + ssize_t len; > > > + unsigned short type; > > > + int flags = O_WRONLY | O_CREAT; > > > + > > > + /* we already consume the req */ > > > + iov_discard_front(&out_sg, &out_num, sizeof(*req)); > > > + > > > + virtio_pstore_to_filename(s, path, sizeof(path), req); > > > + > > > + type = le16_to_cpu(req->type); > > > + > > > + if (type == VIRTIO_PSTORE_TYPE_DMESG) { > > > +...
2016 Jul 28
2
[PATCH 6/7] qemu: Implement virtio-pstore device
...; > > +{ > > > + char path[PATH_MAX]; > > > + int fd; > > > + ssize_t len; > > > + unsigned short type; > > > + int flags = O_WRONLY | O_CREAT; > > > + > > > + /* we already consume the req */ > > > + iov_discard_front(&out_sg, &out_num, sizeof(*req)); > > > + > > > + virtio_pstore_to_filename(s, path, sizeof(path), req); > > > + > > > + type = le16_to_cpu(req->type); > > > + > > > + if (type == VIRTIO_PSTORE_TYPE_DMESG) { > > > +...
2016 Jul 30
2
[Qemu-devel] [PATCH 6/7] qemu: Implement virtio-pstore device
...> > + int fd; > > > > > + ssize_t len; > > > > > + unsigned short type; > > > > > + int flags = O_WRONLY | O_CREAT; > > > > > + > > > > > + /* we already consume the req */ > > > > > + iov_discard_front(&out_sg, &out_num, sizeof(*req)); > > > > > + > > > > > + virtio_pstore_to_filename(s, path, sizeof(path), req); > > > > > + > > > > > + type = le16_to_cpu(req->type); > > > > > + > > > > > +...
2016 Jul 30
2
[Qemu-devel] [PATCH 6/7] qemu: Implement virtio-pstore device
...> > + int fd; > > > > > + ssize_t len; > > > > > + unsigned short type; > > > > > + int flags = O_WRONLY | O_CREAT; > > > > > + > > > > > + /* we already consume the req */ > > > > > + iov_discard_front(&out_sg, &out_num, sizeof(*req)); > > > > > + > > > > > + virtio_pstore_to_filename(s, path, sizeof(path), req); > > > > > + > > > > > + type = le16_to_cpu(req->type); > > > > > + > > > > > +...
2016 Jul 28
0
[Qemu-devel] [PATCH 6/7] qemu: Implement virtio-pstore device
...char path[PATH_MAX]; > > > > + int fd; > > > > + ssize_t len; > > > > + unsigned short type; > > > > + int flags = O_WRONLY | O_CREAT; > > > > + > > > > + /* we already consume the req */ > > > > + iov_discard_front(&out_sg, &out_num, sizeof(*req)); > > > > + > > > > + virtio_pstore_to_filename(s, path, sizeof(path), req); > > > > + > > > > + type = le16_to_cpu(req->type); > > > > + > > > > + if (type == VIRTIO_PSTORE_T...
2016 Aug 01
0
[Qemu-devel] [PATCH 6/7] qemu: Implement virtio-pstore device
...gt; > > > > + ssize_t len; > > > > > > + unsigned short type; > > > > > > + int flags = O_WRONLY | O_CREAT; > > > > > > + > > > > > > + /* we already consume the req */ > > > > > > + iov_discard_front(&out_sg, &out_num, sizeof(*req)); > > > > > > + > > > > > > + virtio_pstore_to_filename(s, path, sizeof(path), req); > > > > > > + > > > > > > + type = le16_to_cpu(req->type); > > > > > > + &g...
2016 Aug 24
2
[PATCH 2/3] qemu: Implement virtio-pstore device
...t virtio_pstore_res res; > + size_t offset = sizeof(res) + sizeof(*info); > + struct iovec *sg = elem->in_sg; > + unsigned int sg_num = elem->in_num; > + Error *err = NULL; > + ssize_t len; > + int ret; > + > + /* skip res and fileinfo */ > + iov_discard_front(&sg, &sg_num, sizeof(res) + sizeof(*info)); > + > + len = qio_channel_readv(rarg->ioc, sg, sg_num, &err); > + if (len < 0) { > + if (errno == EAGAIN) { > + len = 0; > + } > + ret = -1; > + } else { > + info...
2016 Aug 24
2
[PATCH 2/3] qemu: Implement virtio-pstore device
...t virtio_pstore_res res; > + size_t offset = sizeof(res) + sizeof(*info); > + struct iovec *sg = elem->in_sg; > + unsigned int sg_num = elem->in_num; > + Error *err = NULL; > + ssize_t len; > + int ret; > + > + /* skip res and fileinfo */ > + iov_discard_front(&sg, &sg_num, sizeof(res) + sizeof(*info)); > + > + len = qio_channel_readv(rarg->ioc, sg, sg_num, &err); > + if (len < 0) { > + if (errno == EAGAIN) { > + len = 0; > + } > + ret = -1; > + } else { > + info...
2016 Jul 28
3
[PATCH 6/7] qemu: Implement virtio-pstore device
...nt out_num, > + struct virtio_pstore_req *req) > +{ > + char path[PATH_MAX]; > + int fd; > + ssize_t len; > + unsigned short type; > + int flags = O_WRONLY | O_CREAT; > + > + /* we already consume the req */ > + iov_discard_front(&out_sg, &out_num, sizeof(*req)); > + > + virtio_pstore_to_filename(s, path, sizeof(path), req); > + > + type = le16_to_cpu(req->type); > + > + if (type == VIRTIO_PSTORE_TYPE_DMESG) { > + flags |= O_TRUNC; > + } else if (type == VIRTIO_PSTORE_TY...
2016 Jul 28
3
[PATCH 6/7] qemu: Implement virtio-pstore device
...nt out_num, > + struct virtio_pstore_req *req) > +{ > + char path[PATH_MAX]; > + int fd; > + ssize_t len; > + unsigned short type; > + int flags = O_WRONLY | O_CREAT; > + > + /* we already consume the req */ > + iov_discard_front(&out_sg, &out_num, sizeof(*req)); > + > + virtio_pstore_to_filename(s, path, sizeof(path), req); > + > + type = le16_to_cpu(req->type); > + > + if (type == VIRTIO_PSTORE_TYPE_DMESG) { > + flags |= O_TRUNC; > + } else if (type == VIRTIO_PSTORE_TY...
2016 Jul 28
2
[Qemu-devel] [PATCH 6/7] qemu: Implement virtio-pstore device
...nt out_num, > + struct virtio_pstore_req *req) > +{ > + char path[PATH_MAX]; > + int fd; > + ssize_t len; > + unsigned short type; > + int flags = O_WRONLY | O_CREAT; > + > + /* we already consume the req */ > + iov_discard_front(&out_sg, &out_num, sizeof(*req)); > + > + virtio_pstore_to_filename(s, path, sizeof(path), req); > + > + type = le16_to_cpu(req->type); > + > + if (type == VIRTIO_PSTORE_TYPE_DMESG) { > + flags |= O_TRUNC; > + } else if (type == VIRTIO_PSTORE_TY...
2016 Jul 28
2
[Qemu-devel] [PATCH 6/7] qemu: Implement virtio-pstore device
...nt out_num, > + struct virtio_pstore_req *req) > +{ > + char path[PATH_MAX]; > + int fd; > + ssize_t len; > + unsigned short type; > + int flags = O_WRONLY | O_CREAT; > + > + /* we already consume the req */ > + iov_discard_front(&out_sg, &out_num, sizeof(*req)); > + > + virtio_pstore_to_filename(s, path, sizeof(path), req); > + > + type = le16_to_cpu(req->type); > + > + if (type == VIRTIO_PSTORE_TYPE_DMESG) { > + flags |= O_TRUNC; > + } else if (type == VIRTIO_PSTORE_TY...
2016 Jul 30
0
[Qemu-devel] [PATCH 6/7] qemu: Implement virtio-pstore device
...struct virtio_pstore_req *req) > > +{ > > + char path[PATH_MAX]; > > + int fd; > > + ssize_t len; > > + unsigned short type; > > + int flags = O_WRONLY | O_CREAT; > > + > > + /* we already consume the req */ > > + iov_discard_front(&out_sg, &out_num, sizeof(*req)); > > + > > + virtio_pstore_to_filename(s, path, sizeof(path), req); > > + > > + type = le16_to_cpu(req->type); > > + > > + if (type == VIRTIO_PSTORE_TYPE_DMESG) { > > + flags |= O_TRUNC; > >...
2016 Aug 20
0
[PATCH 2/3] qemu: Implement virtio-pstore device
...ueueElement *elem = rarg->elem; + struct virtio_pstore_res res; + size_t offset = sizeof(res) + sizeof(*info); + struct iovec *sg = elem->in_sg; + unsigned int sg_num = elem->in_num; + Error *err = NULL; + ssize_t len; + int ret; + + /* skip res and fileinfo */ + iov_discard_front(&sg, &sg_num, sizeof(res) + sizeof(*info)); + + len = qio_channel_readv(rarg->ioc, sg, sg_num, &err); + if (len < 0) { + if (errno == EAGAIN) { + len = 0; + } + ret = -1; + } else { + info->len = cpu_to_le32(len); + ret = 0...
2016 Aug 26
0
[PATCH 2/3] qemu: Implement virtio-pstore device
...t offset = sizeof(res) + sizeof(*info); > > + struct iovec *sg = elem->in_sg; > > + unsigned int sg_num = elem->in_num; > > + Error *err = NULL; > > + ssize_t len; > > + int ret; > > + > > + /* skip res and fileinfo */ > > + iov_discard_front(&sg, &sg_num, sizeof(res) + sizeof(*info)); > > + > > + len = qio_channel_readv(rarg->ioc, sg, sg_num, &err); > > + if (len < 0) { > > + if (errno == EAGAIN) { > > + len = 0; > > + } > > + ret = -1; &g...
2016 Jul 28
0
[PATCH 6/7] qemu: Implement virtio-pstore device
...struct virtio_pstore_req *req) > > +{ > > + char path[PATH_MAX]; > > + int fd; > > + ssize_t len; > > + unsigned short type; > > + int flags = O_WRONLY | O_CREAT; > > + > > + /* we already consume the req */ > > + iov_discard_front(&out_sg, &out_num, sizeof(*req)); > > + > > + virtio_pstore_to_filename(s, path, sizeof(path), req); > > + > > + type = le16_to_cpu(req->type); > > + > > + if (type == VIRTIO_PSTORE_TYPE_DMESG) { > > + flags |= O_TRUNC; > >...