{"id":2227789,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2227789/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260424091024.23495-3-deller@kernel.org/","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.1/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260424091024.23495-3-deller@kernel.org>","date":"2026-04-24T09:08:48","name":"[2/4] linux-user: Define SO_TIMESTAMP*_NEW and SO_RCVTIMEIO_NEW","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"e8aa7e00d59304f4ee1195055953f66d351be6b6","submitter":{"id":87076,"url":"http://patchwork.ozlabs.org/api/1.1/people/87076/?format=json","name":"Helge Deller","email":"deller@kernel.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260424091024.23495-3-deller@kernel.org/mbox/","series":[{"id":501323,"url":"http://patchwork.ozlabs.org/api/1.1/series/501323/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=501323","date":"2026-04-24T09:08:47","name":"[1/4] linux-user: Use int64_t in target__kernel_sock_timeval","version":1,"mbox":"http://patchwork.ozlabs.org/series/501323/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2227789/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2227789/checks/","tags":{},"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=tyReEN4/;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g26fS4wSVz1xvV\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 19:12:00 +1000 (AEST)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wGCZ9-0001y6-PS; Fri, 24 Apr 2026 05:11:16 -0400","from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <deller@kernel.org>) id 1wGCYZ-0001eB-NY\n for qemu-devel@nongnu.org; Fri, 24 Apr 2026 05:10:41 -0400","from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <deller@kernel.org>) id 1wGCYW-0001HJ-Uh\n for qemu-devel@nongnu.org; Fri, 24 Apr 2026 05:10:38 -0400","from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58])\n by tor.source.kernel.org (Postfix) with ESMTP id 11581600CB;\n Fri, 24 Apr 2026 09:10:36 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id D5F51C2BCB4;\n Fri, 24 Apr 2026 09:10:34 +0000 (UTC)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n s=k20201202; t=1777021835;\n bh=KG2fwHQvDISByslvVy41WuAySIFV/sri4ZntnBzQCgY=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=tyReEN4/9ySbmpiDMrHWpAZO+ieFyaqIrAYd6RVwyOPjkJF1FWfpDIWbm1P9SKtCR\n 9vejfHtSUeearcmXURD3xAyyAnwh/Q/ChSTYApr5X8I21DQLpN/b7PZ3G7K8g1tkgv\n X66j79pYCDRUEZD96PaHMGB9QwYOEOSoj57shB11p4Xow7HHMAlgmYL5t2c+VJnidl\n IxytNXHYitOw39hJOWAUg7blPZXJMPhUUWbyh2NM+6bwYEU0v/neLssXpoA34zHulS\n T9rIHsJyYhHDz2YjgTruMYiUzJHBx8o1/Asp6TSLRZ203ONcC4AQ7xIyZ+lQCJEj65\n m4vWgwcZ1sA7A==","From":"Helge Deller <deller@kernel.org>","To":"laurent@vivier.eu,\n\tqemu-devel@nongnu.org","Cc":"deller@gmx.de","Subject":"[PATCH 2/4] linux-user: Define SO_TIMESTAMP*_NEW and SO_RCVTIMEIO_NEW","Date":"Fri, 24 Apr 2026 11:08:48 +0200","Message-ID":"<20260424091024.23495-3-deller@kernel.org>","X-Mailer":"git-send-email 2.53.0","In-Reply-To":"<20260424091024.23495-1-deller@kernel.org>","References":"<20260424091024.23495-1-deller@kernel.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Received-SPF":"pass client-ip=2600:3c04:e001:324:0:1991:8:25;\n envelope-from=deller@kernel.org; helo=tor.source.kernel.org","X-Spam_score_int":"-20","X-Spam_score":"-2.1","X-Spam_bar":"--","X-Spam_report":"(-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001,\n DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no","X-Spam_action":"no action","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"qemu development <qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-devel>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"},"content":"From: Helge Deller <deller@gmx.de>\n\nDefine the entries which always use the 64-bit timestamps.\n\nSigned-off-by: Helge Deller <deller@gmx.de>\n---\n linux-user/alpha/sockbits.h   | 7 +++++++\n linux-user/generic/sockbits.h | 8 ++++++++\n linux-user/hppa/sockbits.h    | 7 +++++++\n linux-user/mips/sockbits.h    | 7 +++++++\n linux-user/sparc/sockbits.h   | 7 +++++++\n 5 files changed, 36 insertions(+)","diff":"diff --git a/linux-user/alpha/sockbits.h b/linux-user/alpha/sockbits.h\nindex d54dc98c09..0201ab9374 100644\n--- a/linux-user/alpha/sockbits.h\n+++ b/linux-user/alpha/sockbits.h\n@@ -75,6 +75,13 @@\n /* Instruct lower device to use last 4-bytes of skb data as FCS */\n #define TARGET_SO_NOFCS     43\n \n+#define TARGET_SO_TIMESTAMP_NEW        63\n+#define TARGET_SO_TIMESTAMPNS_NEW      64\n+#define TARGET_SO_TIMESTAMPING_NEW     65\n+\n+#define TARGET_SO_RCVTIMEO_NEW         66\n+#define TARGET_SO_SNDTIMEO_NEW         67\n+\n /* TARGET_O_NONBLOCK clashes with the bits used for socket types.  Therefore we\n  * have to define SOCK_NONBLOCK to a different value here.\n  */\ndiff --git a/linux-user/generic/sockbits.h b/linux-user/generic/sockbits.h\nindex b3b4a8e44c..33e6c3a572 100644\n--- a/linux-user/generic/sockbits.h\n+++ b/linux-user/generic/sockbits.h\n@@ -58,4 +58,12 @@\n \n #define TARGET_SO_PROTOCOL             38\n #define TARGET_SO_DOMAIN               39\n+\n+#define TARGET_SO_TIMESTAMP_NEW        63\n+#define TARGET_SO_TIMESTAMPNS_NEW      64\n+#define TARGET_SO_TIMESTAMPING_NEW     65\n+\n+#define TARGET_SO_RCVTIMEO_NEW         66\n+#define TARGET_SO_SNDTIMEO_NEW         67\n+\n #endif\ndiff --git a/linux-user/hppa/sockbits.h b/linux-user/hppa/sockbits.h\nindex 23f69a3293..2304dbbf79 100644\n--- a/linux-user/hppa/sockbits.h\n+++ b/linux-user/hppa/sockbits.h\n@@ -67,6 +67,13 @@\n \n #define TARGET_SO_CNX_ADVICE           0x402E\n \n+#define TARGET_SO_TIMESTAMP_NEW        0x4038\n+#define TARGET_SO_TIMESTAMPNS_NEW      0x4039\n+#define TARGET_SO_TIMESTAMPING_NEW     0x403A\n+\n+#define TARGET_SO_RCVTIMEO_NEW         0x4040\n+#define TARGET_SO_SNDTIMEO_NEW         0x4041\n+\n /* TARGET_O_NONBLOCK clashes with the bits used for socket types.  Therefore we\n  * have to define SOCK_NONBLOCK to a different value here.\n  */\ndiff --git a/linux-user/mips/sockbits.h b/linux-user/mips/sockbits.h\nindex 562cad88e2..1f479d54aa 100644\n--- a/linux-user/mips/sockbits.h\n+++ b/linux-user/mips/sockbits.h\n@@ -71,6 +71,13 @@\n #define TARGET_SO_RCVBUFFORCE          33\n #define TARGET_SO_PASSSEC              34\n \n+#define TARGET_SO_TIMESTAMP_NEW        63\n+#define TARGET_SO_TIMESTAMPNS_NEW      64\n+#define TARGET_SO_TIMESTAMPING_NEW     65\n+\n+#define TARGET_SO_RCVTIMEO_NEW         66\n+#define TARGET_SO_SNDTIMEO_NEW         67\n+\n /** sock_type - Socket types\n  *\n  * Please notice that for binary compat reasons MIPS has to\ndiff --git a/linux-user/sparc/sockbits.h b/linux-user/sparc/sockbits.h\nindex 0a822e3e1f..42ecfdc8f9 100644\n--- a/linux-user/sparc/sockbits.h\n+++ b/linux-user/sparc/sockbits.h\n@@ -61,6 +61,13 @@\n #define TARGET_SO_TIMESTAMPING         0x0023\n #define TARGET_SCM_TIMESTAMPING        TARGET_SO_TIMESTAMPING\n \n+#define TARGET_SO_TIMESTAMP_NEW        0x0046\n+#define TARGET_SO_TIMESTAMPNS_NEW      0x0042\n+#define TARGET_SO_TIMESTAMPING_NEW     0x0043\n+\n+#define TARGET_SO_RCVTIMEO_NEW         0x0044\n+#define TARGET_SO_SNDTIMEO_NEW         0x0045\n+\n #define TARGET_SO_RXQ_OVFL             0x0024\n \n #define TARGET_SO_WIFI_STATUS          0x0025\n","prefixes":["2/4"]}