]> git.proxmox.com Git - mirror_qemu.git/commitdiff
usbredir: reorder fields in USBRedirDevice to reduce padding
authorzhenwei.pi <zhenwei.pi@youruncloud.com>
Tue, 6 Mar 2018 06:46:21 +0000 (14:46 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 12 Mar 2018 10:43:49 +0000 (11:43 +0100)
Changing the current ordering saves 8 bytes per entry in x86_64.

Signed-off-by: zhenwei.pi <zhenwei.pi@youruncloud.com>
Message-id: 1520318781-22644-1-git-send-email-zhenwei.pi@youruncloud.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/redirect.c

index ec174309db7f2e37d47f98c30843325e7da49e13..65a9196c1a8acf21ba07df5882b2885a43f69860 100644 (file)
@@ -106,10 +106,10 @@ struct USBRedirDevice {
     USBDevice dev;
     /* Properties */
     CharBackend cs;
+    bool enable_streams;
     uint8_t debug;
-    char *filter_str;
     int32_t bootindex;
-    bool enable_streams;
+    char *filter_str;
     /* Data passed from chardev the fd_read cb to the usbredirparser read cb */
     const uint8_t *read_buf;
     int read_buf_size;