Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

virtio_balloon: correct tags for config space fields

Tag config space fields as having little endian-ness.
Note that balloon is special: LE even when using
the legacy interface.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>

+5 -5
+5 -5
include/uapi/linux/virtio_balloon.h
··· 45 45 #define VIRTIO_BALLOON_CMD_ID_DONE 1 46 46 struct virtio_balloon_config { 47 47 /* Number of pages host wants Guest to give up. */ 48 - __u32 num_pages; 48 + __le32 num_pages; 49 49 /* Number of pages we've actually got in balloon. */ 50 - __u32 actual; 50 + __le32 actual; 51 51 /* 52 52 * Free page hint command id, readonly by guest. 53 53 * Was previously named free_page_report_cmd_id so we 54 54 * need to carry that name for legacy support. 55 55 */ 56 56 union { 57 - __u32 free_page_hint_cmd_id; 58 - __u32 free_page_report_cmd_id; /* deprecated */ 57 + __le32 free_page_hint_cmd_id; 58 + __le32 free_page_report_cmd_id; /* deprecated */ 59 59 }; 60 60 /* Stores PAGE_POISON if page poisoning is in use */ 61 - __u32 poison_val; 61 + __le32 poison_val; 62 62 }; 63 63 64 64 #define VIRTIO_BALLOON_S_SWAP_IN 0 /* Amount of memory swapped in */