qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Wrong unpacked structure for epoll_event on qemu-or1k (openrisc user-space)
@ 2023-07-18 13:03 Luca Bonissi
  2023-07-18 14:40 ` Peter Maydell
  0 siblings, 1 reply; 7+ messages in thread
From: Luca Bonissi @ 2023-07-18 13:03 UTC (permalink / raw)
  To: qemu-devel

The or1k epoll_event structure - unlike other architectures - is packed, 
so we need to define it as packed in qemu-user, otherwise it leads to 
infinite loop due to missing file descriptor in the returned data:

--- qemu-20230327/linux-user/syscall_defs.h.orig	2023-03-27 
15:41:42.000000000 +0200
+++ qemu-20230327/linux-user/syscall_defs.h	2023-06-30 
17:29:39.034322213 +0200
@@ -2714,7 +2709,7 @@
  #define FUTEX_CMD_MASK          ~(FUTEX_PRIVATE_FLAG | 
FUTEX_CLOCK_REALTIME)

  #ifdef CONFIG_EPOLL
-#if defined(TARGET_X86_64)
+#if defined(TARGET_X86_64) || defined(TARGET_OPENRISC)
  #define TARGET_EPOLL_PACKED QEMU_PACKED
  #else
  #define TARGET_EPOLL_PACKED


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-08-02 20:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-18 13:03 Wrong unpacked structure for epoll_event on qemu-or1k (openrisc user-space) Luca Bonissi
2023-07-18 14:40 ` Peter Maydell
2023-07-18 15:06   ` [PATCH] " Luca Bonissi
2023-07-19  8:49     ` Laurent Vivier
2023-07-19 12:38       ` Luca Bonissi
2023-08-02 19:55         ` Thomas Huth
2023-08-02 20:03           ` Richard Henderson

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).