* [Qemu-devel] [PATCH] usbredir: reorder fields in USBRedirDevice to reduce padding
@ 2018-03-06 6:46 zhenwei.pi
0 siblings, 0 replies; only message in thread
From: zhenwei.pi @ 2018-03-06 6:46 UTC (permalink / raw)
To: kraxel; +Cc: qemu-devel, zhenwei.pi
Changing the current ordering saves 8 bytes per entry in x86_64.
Signed-off-by: zhenwei.pi <zhenwei.pi@youruncloud.com>
---
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 ec17430..65a9196 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.7.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-03-06 6:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-06 6:46 [Qemu-devel] [PATCH] usbredir: reorder fields in USBRedirDevice to reduce padding zhenwei.pi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).