{"id":2228180,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2228180/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260425155140.50186-5-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":"<20260425155140.50186-5-deller@kernel.org>","date":"2026-04-25T15:51:30","name":"[PULL,04/14] linux-user: Don't define target_stat64 struct for loongarch64","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"c7728aaa681496434b20e4639958c65dfe20ee69","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/20260425155140.50186-5-deller@kernel.org/mbox/","series":[{"id":501448,"url":"http://patchwork.ozlabs.org/api/1.1/series/501448/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=501448","date":"2026-04-25T15:51:29","name":"[PULL,01/14] MAINTAINERS: Add myself as maintainer for linux-user","version":1,"mbox":"http://patchwork.ozlabs.org/series/501448/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2228180/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2228180/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=IDVjIsmN;\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 4g2vWT08jHz1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 26 Apr 2026 01:53:41 +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 1wGfIm-00086b-Q2; Sat, 25 Apr 2026 11:52: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 1wGfIV-00080d-FK\n for qemu-devel@nongnu.org; Sat, 25 Apr 2026 11:52:00 -0400","from sea.source.kernel.org ([172.234.252.31])\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 1wGfIS-00012M-E5\n for qemu-devel@nongnu.org; Sat, 25 Apr 2026 11:51:59 -0400","from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58])\n by sea.source.kernel.org (Postfix) with ESMTP id B86CC4065F;\n Sat, 25 Apr 2026 15:51:51 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id 32EDAC2BCB0;\n Sat, 25 Apr 2026 15:51:50 +0000 (UTC)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n s=k20201202; t=1777132311;\n bh=SNBeEj5KSiWYkyqRyYX2gQdrt+ivR89RyfGpq4YmrsY=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=IDVjIsmNG3srjpOoSzAMEnjwJ/5gEb4PmigW6wWN9HnqeSo9yU4+BMiJvwpHSuCUa\n K3QgG8B0eEiqvno9pqHeJxxyU4F7cS0UXk1y31h4hcYEb4AubN1KfDNtGiYnKDk2Kz\n K/w88mVpyUFYRC0XC2nouWDfkFV54IOJybTxuXzpzw38kkMQPL++FW8Wor6q8tTbLT\n 25tsz2cnLIhnAhNRZ10aDXBEseebkyXuXA6sE3Dy0i0XX1YE30vcUWJz1vDSrQcmGZ\n iJ/wioX+UMPWHCudiozfV2MwzxgxJXitIDzG+F/nTJQLM09Ow7I7IuTm2/0O16+mg5\n xS39dgloDNQ6g==","From":"Helge Deller <deller@kernel.org>","To":"qemu-devel@nongnu.org","Cc":"Helge Deller <deller@gmx.de>, Jiaxun Yang <jiaxun.yang@flygoat.com>,\n Laurent Vivier <laurent@vivier.eu>,\n Pierrick Bouvier <pierrick.bouvier@linaro.org>, =?utf-8?q?Philippe_Mathieu-?=\n\t=?utf-8?q?Daud=C3=A9?= <philmd@linaro.org>","Subject":"[PULL 04/14] linux-user: Don't define target_stat64 struct for\n loongarch64","Date":"Sat, 25 Apr 2026 17:51:30 +0200","Message-ID":"<20260425155140.50186-5-deller@kernel.org>","X-Mailer":"git-send-email 2.53.0","In-Reply-To":"<20260425155140.50186-1-deller@kernel.org>","References":"<20260425155140.50186-1-deller@kernel.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Received-SPF":"pass client-ip=172.234.252.31; envelope-from=deller@kernel.org;\n helo=sea.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: Gyorgy Tamasi <gyorgy.tamasi@gmail.com>\n\nThe kernel defines 'struct stat64' only if\n__BITS_PER_LONG != 64 || defined(__ARCH_WANT_STAT64).\nloongarch64 doesn't set __ARCH_WANT_STAT64, and it isn't 32-bit,\nso it won't get this struct.\n\nQEMU incorrectly does define a target_stat64 struct. However this\nisn't causing any guest-visible problems, because defining the\ntarget_stat64 struct and TARGET_HAS_STRUCT_STAT64 affects these\nsyscalls:\n TARGET_NR_stat64\n TARGET_NR_lstat64\n TARGET_NR_fstat64\n TARGET_NR_fstatat64\n TARGET_NR_newfstatat\n\nFor loongarch64 the only one of those we provide is newfstatat,\nand that is actually a separate QEMU bug, because the kernel does\nnot provide that syscall for this architecture. No real guest\ncode will be using a syscall that doesn't exist in the ABI.\n\n(Some of these syscalls are present in the loongarch64 \"ABI1.0\",\nbut that ABI was never accepted in the upstream kernel, and\nQEMU does not model that ABI, only the \"ABI2.0\".)\n\nStop defining TARGET_HAS_STRUCT_STAT64 anyway, for consistency\nwith the kernel and to avoid confusion.\n\nNote:\nCommit message suggested by Peter Maydell <peter.maydell@linaro.org>\n\nSigned-off-by: Gyorgy Tamasi <gyorgy.tamasi@gmail.com>\nTested-by: Gyorgy Tamasi <gyorgy.tamasi@gmail.com>\nReviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>\nReviewed-by: Peter Maydell <peter.maydell@linaro.org>\nSigned-off-by: Helge Deller <deller@gmx.de>\n---\n linux-user/syscall_defs.h | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)","diff":"diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h\nindex 679af640c0..6967306be4 100644\n--- a/linux-user/syscall_defs.h\n+++ b/linux-user/syscall_defs.h\n@@ -2005,7 +2005,7 @@ struct target_stat {\n     abi_uint __unused5;\n };\n \n-#if !defined(TARGET_RISCV64)\n+#if !defined(TARGET_RISCV64) && !defined(TARGET_LOONGARCH64)\n #define TARGET_HAS_STRUCT_STAT64\n struct target_stat64 {\n     abi_ullong st_dev;\n","prefixes":["PULL","04/14"]}