Commit 91e515c2 authored by Alistair Delva's avatar Alistair Delva Committed by Gerd Hoffmann

virtio-gpu api: fix 64/32 compat issue with blob implementation

We encountered this issue when booting blob with a 32-bit kernel.
The implementation doesn't match v6 of the virtio-spec change, so fix
this.

Fixes: ff886cbd ("virtio-gpu api: blob resources")
Signed-off-by: default avatarAlistair Delva <adelva@google.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200929215333.1241-1-gurchetansingh@chromium.orgSigned-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent 4f8cc7a6
......@@ -388,9 +388,9 @@ struct virtio_gpu_resource_create_blob {
/* zero is invalid blob mem */
__le32 blob_mem;
__le32 blob_flags;
__le32 nr_entries;
__le64 blob_id;
__le64 size;
__le32 nr_entries;
/*
* sizeof(nr_entries * virtio_gpu_mem_entry) bytes follow
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment