mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
iov: Introduce a new file for helpers around iovs, add iov_from_buf()
The virtio-net code uses iov_fill() which fills an iov from a linear buffer. The virtio-serial-bus code does something similar in an open-coded function. Create a new iov.c file that has iov_from_buf(). Convert virtio-net and virtio-serial-bus over to use this functionality. virtio-net used ints to hold sizes, the new function is going to use size_t types. Later commits will add the opposite functionality -- going from an iov to a linear buffer. Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
3ecb45f893
commit
e4d5639dbb
6 changed files with 62 additions and 25 deletions
|
@ -100,6 +100,7 @@ common-obj-y += keymaps.o
|
|||
common-obj-$(CONFIG_SDL) += sdl.o sdl_zoom.o x_keymap.o
|
||||
common-obj-$(CONFIG_CURSES) += curses.o
|
||||
common-obj-y += vnc.o acl.o d3des.o
|
||||
common-obj-y += iov.o
|
||||
common-obj-$(CONFIG_VNC_TLS) += vnc-tls.o vnc-auth-vencrypt.o
|
||||
common-obj-$(CONFIG_VNC_SASL) += vnc-auth-sasl.o
|
||||
common-obj-$(CONFIG_COCOA) += cocoa.o
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue