History

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.

Alistair Delva committed 6 years ago

Commit 91e515c1 parent 4f8cc7a1 file · +1 −1Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/virtio_gpu.h+1−1
@@ -388,9 +388,9 @@ struct virtio_gpu_resource_create_blob { · 387 unmodified lines
388388 /* zero is invalid blob mem */
389389 __le32 blob_mem;
390390 __le32 blob_flags;
391+ __le32 nr_entries;
391392 __le64 blob_id;
392393 __le64 size;
393− __le32 nr_entries;
394394 /*
395395 * sizeof(nr_entries * virtio_gpu_mem_entry) bytes follow
396396 */