virtio_pmem: 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 this 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_pmem.h

index b022787..d676b36 100644 (file)
@@ -15,8 +15,8 @@
 #include <linux/virtio_config.h>
 
 struct virtio_pmem_config {
-       __u64 start;
-       __u64 size;
+       __le64 start;
+       __le64 size;
 };
 
 #define VIRTIO_PMEM_REQ_TYPE_FLUSH      0