virtio_gpu: correct tags for config space fields
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 10 Jul 2020 11:17:13 +0000 (07:17 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Aug 2020 15:08:40 +0000 (11:08 -0400)
Since gpu is a modern-only device,
tag config space fields as having little endian-ness.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
include/uapi/linux/virtio_gpu.h

index 0c85914..ccbd174 100644 (file)
@@ -320,10 +320,10 @@ struct virtio_gpu_resp_edid {
 #define VIRTIO_GPU_EVENT_DISPLAY (1 << 0)
 
 struct virtio_gpu_config {
-       __u32 events_read;
-       __u32 events_clear;
-       __u32 num_scanouts;
-       __u32 num_capsets;
+       __le32 events_read;
+       __le32 events_clear;
+       __le32 num_scanouts;
+       __le32 num_capsets;
 };
 
 /* simple formats for fbcon/X use */