]> xenbits.xensource.com Git - qemu-xen.git/commit
linux-user: fix timerfd read endianness conversion
authorMathis Marion <mathis.marion@silabs.com>
Mon, 20 Feb 2023 08:58:19 +0000 (09:58 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 10 Apr 2023 08:38:34 +0000 (11:38 +0300)
commit73a11e3723a157df669888fc89c4e776d5fcc8ee
treeb7fddcae2d9ebc57a22dc652986ac0cf7cc5c647
parentb6abbe6250a140d6f4b779f04c95e79a0f0aeffa
linux-user: fix timerfd read endianness conversion

When reading the expiration count from a timerfd, the endianness of the
64bit value read is the one of the host, just as for eventfds.

Signed-off-by: Mathis Marion <mathis.marion@silabs.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20230220085822.626798-2-Mathis.Marion@silabs.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
(cherry picked from commit d759a62b122dcdf76d6ea10c56c5dff1d04d731d)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
linux-user/fd-trans.c
linux-user/fd-trans.h
linux-user/syscall.c