virtio_console: 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:39 +0000 (11:08 -0400)
Tag config space fields as having virtio endian-ness.

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

index b7fb108..7e6ec2f 100644 (file)
 
 struct virtio_console_config {
        /* colums of the screens */
-       __u16 cols;
+       __virtio16 cols;
        /* rows of the screens */
-       __u16 rows;
+       __virtio16 rows;
        /* max. number of ports this device can hold */
-       __u32 max_nr_ports;
+       __virtio32 max_nr_ports;
        /* emergency write register */
-       __u32 emerg_wr;
+       __virtio32 emerg_wr;
 } __attribute__((packed));
 
 /*