]> git.ipfire.org Git - thirdparty/qemu.git/commit - hw/display/virtio-gpu.c
virtio-gpu: Refactor virtio_gpu_create_mapping_iov
authorVivek Kasireddy <vivek.kasireddy@intel.com>
Wed, 26 May 2021 23:14:22 +0000 (16:14 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 27 May 2021 10:07:37 +0000 (12:07 +0200)
commit70d376623121f8ce77333fc96cd0d4c0719a5a4b
treee5aecf52b45320678f64319516bde71caef95488
parente64d4b6a9bc3ba216a988276bcdc27d06fd48e59
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>
hw/display/virtio-gpu-virgl.c
hw/display/virtio-gpu.c
include/hw/virtio/virtio-gpu.h