qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 1/1] usbredir: reorder fields in USBRedirDevice to re


From: Gerd Hoffmann
Subject: [Qemu-devel] [PULL 1/1] usbredir: reorder fields in USBRedirDevice to reduce padding
Date: Mon, 12 Mar 2018 12:05:32 +0100

From: "zhenwei.pi" <address@hidden>

Changing the current ordering saves 8 bytes per entry in x86_64.

Signed-off-by: zhenwei.pi <address@hidden>
Message-id: address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>
---
 hw/usb/redirect.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c
index ec174309db..65a9196c1a 100644
--- a/hw/usb/redirect.c
+++ b/hw/usb/redirect.c
@@ -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;
-- 
2.9.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]