diff options
author | Raphael Norwitz | 2020-03-25 11:35:06 +0100 |
---|---|---|
committer | Michael S. Tsirkin | 2020-05-04 16:25:03 +0200 |
commit | 2d9da9dff35765fc3c0f5a67da04a38066897650 (patch) | |
tree | fa70174237cc322f3018f7ff92fdb5fbd00fc9f1 /ui/qemu-pixman.c | |
parent | tests/acpi: add expected tables for bios-tables-test (diff) | |
download | qemu-2d9da9dff35765fc3c0f5a67da04a38066897650.tar.gz qemu-2d9da9dff35765fc3c0f5a67da04a38066897650.tar.xz qemu-2d9da9dff35765fc3c0f5a67da04a38066897650.zip |
Refactor vhost_user_set_mem_table functions
vhost_user_set_mem_table() and vhost_user_set_mem_table_postcopy() have
gotten convoluted, and have some identical code.
This change moves the logic populating the VhostUserMemory struct and
fds array from vhost_user_set_mem_table() and
vhost_user_set_mem_table_postcopy() to a new function,
vhost_user_fill_set_mem_table_msg().
No functionality is impacted.
Signed-off-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
Signed-off-by: Peter Turschmid <peter.turschm@nutanix.com>
Message-Id: <1585132506-13316-1-git-send-email-raphael.norwitz@nutanix.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'ui/qemu-pixman.c')
0 files changed, 0 insertions, 0 deletions