mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
virtio-gpu: Refactor virtio_gpu_create_mapping_iov
Instead of passing the attach_backing object to extract nr_entries and offset, explicitly pass these as arguments to this function. This will be helpful when adding create_blob API. Cc: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Vivek Kasireddy <vivek.kasireddy@intel.com> Message-Id: <20210526231429.1045476-8-vivek.kasireddy@intel.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
e64d4b6a9b
commit
70d3766231
3 changed files with 12 additions and 12 deletions
|
@ -238,7 +238,7 @@ void virtio_gpu_get_display_info(VirtIOGPU *g,
|
|||
void virtio_gpu_get_edid(VirtIOGPU *g,
|
||||
struct virtio_gpu_ctrl_command *cmd);
|
||||
int virtio_gpu_create_mapping_iov(VirtIOGPU *g,
|
||||
struct virtio_gpu_resource_attach_backing *ab,
|
||||
uint32_t nr_entries, uint32_t offset,
|
||||
struct virtio_gpu_ctrl_command *cmd,
|
||||
uint64_t **addr, struct iovec **iov,
|
||||
uint32_t *niov);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue