From nobody Sun Apr 28 15:28:13 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1487255351987786.6743780964986; Thu, 16 Feb 2017 06:29:11 -0800 (PST) Received: from localhost ([::1]:46999 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceN3T-0000Wx-Kf for importer@patchew.org; Thu, 16 Feb 2017 09:29:07 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceMxI-0002Cx-Qo for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceMxF-0002IM-KK for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:44 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:63469) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ceMxF-0002Hw-92 for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:41 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0M3See-1cMhXi3oXI-00r1Gy; Thu, 16 Feb 2017 15:22:31 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Thu, 16 Feb 2017 15:22:14 +0100 Message-Id: <20170216142227.27448-2-laurent@vivier.eu> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170216142227.27448-1-laurent@vivier.eu> References: <20170216142227.27448-1-laurent@vivier.eu> X-Provags-ID: V03:K0:4n8YdMhsnJKO3rU/jwrjaYm0RVgLczGgNGmDutHurqMIVNCD+qB AamR1a1vot/Sj2jB4bA0euE1b4iwqYyy/6doQPe5OD97frSzFKgfYPJGXmWrjhE4tXDCIXm bGwsXueELUjoSmjjBIe8R8NU9RIKdp3wWlCtjd7aunA3jYuLXpvGOG3bhiWugfpChCFlBCf uV3A5QGqf+Y8ztkTJlccg== X-UI-Out-Filterresults: notjunk:1;V01:K0:Yoi9QMU1c64=:Mh6DpCERltFqdx7t89SQbh hwevwltlIvgMb3T5E63ZuY1Ez1uHCChqC+MWHBJs/V9iu+g8B7sFAigMo6Vrn05H3MCMay4aa NiDfGO7BjC7W1nlvlL/jqu7rMB/5TbbrO7vUsibBRp5CtPbnvnSlZQkbj5DFxIhDcBDpIk9Dl QyIvMFbIkNGzjkxeJLZbfRslMIXbD7U7Xo2RGV+7x+SvqmZIm2xSUPEzak83v9wh1IbazqPjv +CG8wuH3ASxlKS548DcnOff4zwRiD39SUvRAeGB1lRn6juztQeX6IiG7BL8ZPUR3Z1To4IXIB h+Ng4v9ZedRrhnkTQHTK8PkpLSkCt30YoI6nr523M6W75+vKkdsjEEqGRo6AVi4mh8vb4DMRn 8TJ//gN0TXCQg2uX+9pm8DDYJUjRrL2vAl6i8pdRw0sRo5UaC2XpApPWy0SIYHYzKVmwl3xFb YzWCBDsl2vHTmV1ZUZqOLaH7v/C5gZBWC0AOLVQr6tbUEw6IIQs98jDDvO6DlEN/q9/lF/+wX t8SPVFOEBoivH3EB4V70XGK5dYzi0yVFPaYvT+2UTTUWITi6IT6U5e2naA78K0eLyXsJVVAA+ 2151tWdfj53YEo0oW3GB8q3g7v+eIU75R8/Gkw1DiVZ3gV3KEdNUCf0RZ7e7mJIaNNL9SFTcb QmZr1vCJ3OpkzKAHw4ENt4DsAivlj+Ye+YpoFv448QorV8IEGSyueV2y2dMRJt94UqbI= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.24 Subject: [Qemu-devel] [PULL 01/14] linux-user: remove ifdef __USER_MISC X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Riku Voipio , Riku Voipio Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Riku Voipio This preprocessor macro isn't set anywhere. Remove the check so -strace can show these options. Signed-off-by: Riku Voipio --- linux-user/strace.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index 489dbc9..8fb1b6e 100644 --- a/linux-user/strace.c +++ b/linux-user/strace.c @@ -90,10 +90,8 @@ if( cmd =3D=3D val ) { \ output_cmd( IPC_STAT ); output_cmd( IPC_INFO ); /* msgctl() commands */ - #ifdef __USER_MISC output_cmd( MSG_STAT ); output_cmd( MSG_INFO ); - #endif /* shmctl() commands */ output_cmd( SHM_LOCK ); output_cmd( SHM_UNLOCK ); --=20 2.9.3 From nobody Sun Apr 28 15:28:13 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 148725657433632.05740331419088; Thu, 16 Feb 2017 06:49:34 -0800 (PST) Received: from localhost ([::1]:47117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceNNE-0006bp-98 for importer@patchew.org; Thu, 16 Feb 2017 09:49:32 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceMxb-0002zK-Fo for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:23:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceMxX-0002SQ-Qa for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:23:03 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:57123) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ceMxX-0002RI-F7 for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:59 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0Lmcct-1c5JFb1cvb-00aBD9; Thu, 16 Feb 2017 15:22:32 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Thu, 16 Feb 2017 15:22:15 +0100 Message-Id: <20170216142227.27448-3-laurent@vivier.eu> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170216142227.27448-1-laurent@vivier.eu> References: <20170216142227.27448-1-laurent@vivier.eu> X-Provags-ID: V03:K0:ohMti3gy2YF84sQtiDQyUx2k3eXyEgwi1xFPdXlCo9m4jW7e3rO du/yBoPfGE9/M8+QMWVl4DA8MoYfGTZmxb9fxuIxAYL7D162lynSmbOiO64HcImtEfpZ12O xtTLTV8ngIY4l1jojAo3LOWjxx8818f5D9up5H4OFBh9rCf8/sJaZwxg0SfbotIMmqMO8v/ MPbgsm9xaKVu9mBenT6gw== X-UI-Out-Filterresults: notjunk:1;V01:K0:Mzg8Pm6gfbc=:4fLU9DewGZv1QfQ2OCVPKk 5r24Xg3E0C0cr3VNbJDfDl+JYYpJop6HXIuarfIS9yxiQIZAmX29usMr28k9bPuX1UEDDodl0 sS5Z6PjnrWyM2b/dUaHlzBxGxueJxM+IZl2eQXbLUgwlx+aCbx2CVyI/TZgnI27qvmAG0Qm4T xOZ+dRSLg6rCOeyQ2KCXFoAakVfWuWULyfNX7cgIGUobPskcQVyy/onlhPEZry9l6p9Qa3a5k XYyLfg/jcImi3dIYVPGuEcU3do6Fju8TZaJCe2pp/YIpjZ2zrrFocV5joUdgxUkaHJiUD+g1A Ak7EwgpqoaepUHOQEDFjp7Xml7CsrnyfRIpJg06KGO/B6GAMVbcOun7bzBomL9dN9q+/SKtCO r1lco8DOPaf5J2a6fhgoHZgJtfEb8B8BKAxrSoqxPMpU0DpygIkxoHRHlUXCTr3Qv9CEQUPga fNWggPn9+vT5G3EFr50j7GoIMwLycC+sEmXKPgp2oNg1ncKrR6lTAtlx6OL3GPvc8j5xhHKmL BkC8eD0nmhH4UPh8EzwuNR7Hb9cTEPW/qxiG/Ef9UGH1ayUrrpTJgS6eSqCEtw0s6xmRnWrTv rbg0/APcvSQJYC10xlp7e+4TgyoOBUahU6qgXTm/0pGrkm7EBXobfaGVF9efoo5B7IMSGAjXS rkGG1nnuSzBH4SSIRc+FJ6KTTMuqMME2QE1vHsdAP5ADhDu3LjWB4FZxzAfOZIZP6i5g= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.13 Subject: [Qemu-devel] [PULL 02/14] linux-user: drop __cygwin__ ifdef X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Riku Voipio , Riku Voipio , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Riku Voipio linux-user doesn't work on cygwin anyways. Cc: Richard Henderson Signed-off-by: Riku Voipio --- linux-user/mmap.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/linux-user/mmap.c b/linux-user/mmap.c index 61685bf..4ed9cad 100644 --- a/linux-user/mmap.c +++ b/linux-user/mmap.c @@ -193,9 +193,6 @@ static int mmap_frag(abi_ulong real_start, =20 #if HOST_LONG_BITS =3D=3D 64 && TARGET_ABI_BITS =3D=3D 64 # define TASK_UNMAPPED_BASE (1ul << 38) -#elif defined(__CYGWIN__) -/* Cygwin doesn't have a whole lot of address space. */ -# define TASK_UNMAPPED_BASE 0x18000000 #else # define TASK_UNMAPPED_BASE 0x40000000 #endif --=20 2.9.3 From nobody Sun Apr 28 15:28:13 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1487255837710356.05034514695217; Thu, 16 Feb 2017 06:37:17 -0800 (PST) Received: from localhost ([::1]:47049 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceNBJ-0007Ii-Da for importer@patchew.org; Thu, 16 Feb 2017 09:37:13 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceMxb-0002zg-Fp for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:23:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceMxX-0002SX-UL for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:23:03 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:58618) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ceMxX-0002RN-JM for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:59 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0Ma2r1-1cxPwE0Cfn-00LpFn; Thu, 16 Feb 2017 15:22:33 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Thu, 16 Feb 2017 15:22:16 +0100 Message-Id: <20170216142227.27448-4-laurent@vivier.eu> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170216142227.27448-1-laurent@vivier.eu> References: <20170216142227.27448-1-laurent@vivier.eu> X-Provags-ID: V03:K0:WhP7CsHXlGtTzuC/RIc6JSq7IkP9hMK80KKYHGz+HGv6sVUJHoj 3D/DxIZ7wEose6oJAv4YlKS+dgIbOEopofK7iZRGblRo/FcFO/jq7leHqR0Ks94XWHmCP3Z 6e2J5qa14uWlcajBVBS6AZnv1oCDcZRBRwmlalbxbRZbFajtKv2T1+butai8NBY449ip/L1 Z9gEVSBGVkIw0Tv06Q7qA== X-UI-Out-Filterresults: notjunk:1;V01:K0:epiXtBboMX0=:A2P0HC3vqNzQFTCB19eOI/ Y4t0ne1gxhW+JzcdAkM3y+ND1l870LIPuQMc7yLfZ7kQjm3JNZk+1AoQtsmqmXyaI4elMxZ2t R5m2Jf6xtfGVH5da/tAXwJnRCGJSZhOW4/jfqjL4nvNBxl+RZSioipAbgifFWeW6EkUVXQpBx /Fk7v5ij9LqSVsIkdxBN54AKzqYBlHGX87YmuAlvAiMlJOGYGFErdX4rKI28Ak8OvMzW3Cemx ROqP+8gCCqe42rfmJjpnspkuYZ/XcyhwgANtIwHjzS7V9GikmVsuatutFOPB7qJgn9i1fTmVa 5F6QPRdLMHuo4RwFJXPF8/iRRhxneNNh0I2RY0WN7k9VkFLRFtl04R61ntYkuwONtXVSGLIA2 kNQj/w2LUnbbz3B7HLPMofSzwDEtgw1mbdCVi/R/xBGpM5CWs7NqOfZwKksyRfM3uE0V2su7r XwUQ8S1i+ZZVYGhfzenPuyN/7duMMABluVs0k2RLPoN9qyy6gjleLFSRI8J+DGRXrH10T+Doo aWPkXsJKmrilDe395A2vgSbpPMfQbCcXCbMhtPZOQsQQ0ASvrivBQMhfPxQrb9Fb3Nx3RVAS6 EmXsZxRibw9g4AHqdQDorQajxq7zeFcmBC5gWvhVBxEq6KiFXH8fCDlqPWExhB6EOgWvgcLcu Mo3Q7XVh9cZUU59sCtPLJl/7ixx1NjqyZWUleIbYcLJlFeWPYNE0A84Ht5gdOPwq4TYY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.72.192.74 Subject: [Qemu-devel] [PULL 03/14] linux-user: Fix s390x safe-syscall for z900 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Riku Voipio , Riku Voipio , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Richard Henderson The LT instruction was added in the extended immediate facility introduced with the z9-109 processor. Cc: Riku Voipio Reported-by: Michael Tokarev Fixes: c9bc3437a905b660561a26cd4ecc64579843267b Suggested-by: Aurelien Jarno Reviewed-by: Thomas Huth Signed-off-by: Richard Henderson Signed-off-by: Riku Voipio --- linux-user/host/s390x/safe-syscall.inc.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/host/s390x/safe-syscall.inc.S b/linux-user/host/s39= 0x/safe-syscall.inc.S index f1b446a..414b44a 100644 --- a/linux-user/host/s390x/safe-syscall.inc.S +++ b/linux-user/host/s390x/safe-syscall.inc.S @@ -72,7 +72,7 @@ safe_syscall_base: */ safe_syscall_start: /* if signal_pending is non-zero, don't do the call */ - lt %r0,0(%r8) + icm %r0,15,0(%r8) jne 2f svc 0 safe_syscall_end: --=20 2.9.3 From nobody Sun Apr 28 15:28:13 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1487255552373977.220308816181; Thu, 16 Feb 2017 06:32:32 -0800 (PST) Received: from localhost ([::1]:47021 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceN6i-0003KP-Pf for importer@patchew.org; Thu, 16 Feb 2017 09:32:28 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceMxV-0002gV-7g for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceMxU-0002Py-B3 for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:57 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:51913) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ceMxU-0002Oe-03 for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:56 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0Lto9d-1cCUGK3SZJ-011EXV; Thu, 16 Feb 2017 15:22:34 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Thu, 16 Feb 2017 15:22:17 +0100 Message-Id: <20170216142227.27448-5-laurent@vivier.eu> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170216142227.27448-1-laurent@vivier.eu> References: <20170216142227.27448-1-laurent@vivier.eu> X-Provags-ID: V03:K0:f1QQU/TTptppxGVT1U6BeRk4OvWxFuhts64U/BCB/fsYyp+9iZ3 LeVE16ZBNOzDM9kcQ8RIf9yykByml1dGrtbabD81sGhRUIqt72qUJycfyCb83eWHPsbpcGk vqMxqjnF9NsWQPg6YQNvc/EcOR320lv/u/RzoGXbwCgoCK8yKYtXppgU7/CH2WvoZkyXZT5 rAsY2hkLhKI+l+Us1ZtuA== X-UI-Out-Filterresults: notjunk:1;V01:K0:KKzvkgp4peA=:C/k/6Eg77soLLww0+QtJtm aAmj6xDgfnpOWSwjhmeUB57/dD24KsXTzt1iYJF+iVRJOpZ3x+zYdLGmnlnHVuStmGLSe3RuX 4fFtpw98FWsmvYFmz8+ueWL/odBeGPBvjOgRFPOBA7tbwti4n+wFhviL167qQfOjLqOZfpLja OdbCPwEA0qQyGCG3eoFp1+/MJAiBEQ9OSu4YEa3iBqsp8SSE1+CO31ZuFuZebhSaGbyiUsiEl W/nsI41oWu9i2IyxsD31U1aM8EHY9+rtZwOxBG3HkKZ4if92NlTa3SePiCVjz/m/Kj/6+9Jjs 6KMfOqh3grQLBfqN3f41pjsiTUdhuWzfWeGY9yxBPgRbTGDRggy6U612ULYb0RbhT9ROLwi2s p80q3Qgd/NLDGGTvzgJ9McjvKYXounVeXCJWz5hqZFfx3OleNN7OH2kH1zQTE3T9spe6qxndC 8NPnjviuj0e/YpX6LUWxDfjKfZ1s1zCCKOLfC4bVs2Tc3feqQvpHIu2jNiRjP+gH4jAvtUe+R sHfMHhPnVl1qDUAiOtwT7HqcYreR8spLZvs4O2qNl+wCH0+Glj5uT9o92IrUNNDEWTFbyXH4n J/oVZNiN0cM9XODB7iB4aeKjPvEuQGZgP116IWKF0EkjooHmxstJ+ps4KLUinaWy+X/WmU9gU pCxhzGRuIZmbOKfClZhAGJ550+MSudUBYeZiubxOwdKKRym9NJI9LLnfeQ73pMAVhsk8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.72.192.75 Subject: [Qemu-devel] [PULL 04/14] linux-user: Fix inotify_init1 support X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lena Djokic , Riku Voipio , Riku Voipio Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Lena Djokic This commit adds necessary conversion of argument passed to inotify_init1. inotify_init1 flags can be IN_NONBLOCK and IN_CLOEXEC which rely on O_NONBL= OCK and O_CLOEXEC and those can have different values on different platforms. Signed-off-by: Lena Djokic Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 9be8e95..fccd631 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -11561,7 +11561,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_lon= g arg1, #ifdef CONFIG_INOTIFY1 #if defined(TARGET_NR_inotify_init1) && defined(__NR_inotify_init1) case TARGET_NR_inotify_init1: - ret =3D get_errno(sys_inotify_init1(arg1)); + ret =3D get_errno(sys_inotify_init1(target_to_host_bitmask(arg1, + fcntl_flags_tbl))); break; #endif #endif --=20 2.9.3 From nobody Sun Apr 28 15:28:13 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 148725685863891.89002151263355; Thu, 16 Feb 2017 06:54:18 -0800 (PST) Received: from localhost ([::1]:47140 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceNRl-00029S-KV for importer@patchew.org; Thu, 16 Feb 2017 09:54:13 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceMxd-00035X-59 for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:23:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceMxZ-0002TG-C2 for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:23:05 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:59359) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ceMxZ-0002Sc-0s for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:23:01 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0MMF5h-1cja1H1vY5-007zKH; Thu, 16 Feb 2017 15:22:34 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Thu, 16 Feb 2017 15:22:18 +0100 Message-Id: <20170216142227.27448-6-laurent@vivier.eu> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170216142227.27448-1-laurent@vivier.eu> References: <20170216142227.27448-1-laurent@vivier.eu> X-Provags-ID: V03:K0:THR7vrkWeYbDs7Wp/9+rfg3XI5a5BFuDr06SZiGJ0IeLu7EzjH+ H2JTjL+KcvaQJVZrGZXcLj9gpZk80eyWbGQfL4LukbcxkjvVwNUblUlWovwxFY1wmtx7mYf Xo3HPztNGur10lciYEXePcGWYsX0tn0oWiQJ6rfMgciDIsfdGSLO31vtir+sHYgiejLb1uO 4JuiHCU5ECTrM0NWW5UfA== X-UI-Out-Filterresults: notjunk:1;V01:K0:cZ2zA4/U2Ag=:jtoR9/Z4e5M2cfObZryIiC Vq1fclJMEHBcC8p1H2ubJ9h5q6AhHFVdzZfZhxM+HbrKJCuW9Ip6K1BxiGWws+bXljiSMNOum Y2DZW188/JKfTTTSZS8Hg++vyk+gMjMPGlaXY8aFNHj6QxxNF5EM8puIUtlm/kB4r41Ck/JEj dSDzN2TtAxPqUM7U7V6VV3KlAEVr63CUkN7VAUhsqz9DxA8vxoOTzNaHHE1XtrsrHdhCj9fm6 2tRFEFXIbmdxWX3w2zkyDBqGrXtwS7MCICG206PYbSKVV5KTjzKTh7Asr19+fQDEaoMjDdIfg aG3AM5d1jrt1xMmGkHxvhoLqbxfyYAzCb+QfMLXmqp0zEJuFeLCdhBmv73y+ZzQFk/3/c5bTg FBoVYy024jrnDvoItxpt6K2PL+f/z/lpNLFsp5Lx1zRFhvvfvbi2pixFJLlLdRJSa5bVEgoAo rPgAbWExhuIatV8d1kARCjW0oQtThzTHrEsq3K2i6H+ETkNs8gaeWyki2aVvvQbF2PS008T/M Km9UD0HSM3j1YzuUOrLtvvG7nODXy5kDPf3YJfWonoYgp/utxnMYfdFcrlEZdZ8cFbimK6c3U 5/+ZaOuF4BwAZQ50weFI8NINH1GXLqYnc5Ft6z9EUieEctqrl0yaSU843rR7+PGO+Rva1n0xg ygps/FS0pOE1uL8cfcF52feVlOA0CjKPfGE56LZi6exKzhZpRjDZXtsF9pieWOdbn1ig= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.10 Subject: [Qemu-devel] [PULL 05/14] linux-user: Fix readahead X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lena Djokic , Riku Voipio , Riku Voipio Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Lena Djokic Calculation of 64-bit offset was not correct for all cases. Signed-off-by: Lena Djokic Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index fccd631..3e88dd1 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -11228,7 +11228,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_lon= g arg1, arg3 =3D arg4; arg4 =3D arg5; } - ret =3D get_errno(readahead(arg1, ((off64_t)arg3 << 32) | arg2, ar= g4)); + ret =3D get_errno(readahead(arg1, target_offset64(arg2, arg3) , ar= g4)); #else ret =3D get_errno(readahead(arg1, arg2, arg3)); #endif --=20 2.9.3 From nobody Sun Apr 28 15:28:13 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1487256115516842.8009903473348; Thu, 16 Feb 2017 06:41:55 -0800 (PST) Received: from localhost ([::1]:47075 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceNFo-0003cF-4t for importer@patchew.org; Thu, 16 Feb 2017 09:41:52 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48716) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceMxh-0003Ct-Ly for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:23:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceMxe-0002Ux-F4 for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:23:09 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:65114) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ceMxe-0002UV-4i for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:23:06 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0MPXwP-1ciTYg0K7F-004fwP; Thu, 16 Feb 2017 15:22:35 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Thu, 16 Feb 2017 15:22:19 +0100 Message-Id: <20170216142227.27448-7-laurent@vivier.eu> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170216142227.27448-1-laurent@vivier.eu> References: <20170216142227.27448-1-laurent@vivier.eu> X-Provags-ID: V03:K0:/PnULKSvHTYZRnhrkXA48lM7VKUUvIvsZLAUnre+90rrNlVzg7u KVZZykciEsx7E+6Ka1+4uTLnnbvcE5y+e7JK/nSCfdWmxcrt4dVCLClow84igk/8ZynXoGY U1JxpHv9mLheBuFH5QuSxZfDDSyQhYwnD46HluPT0NmY2XQqY65rB2+w5TtPbJas2EY/wsr ItmRNs89zGsVfybCmVhsQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:yo/fVR0qjWY=:o05tqthh070CoUIHuiVAOO rYiixvUfP+gbJ4qHBjlRs1x2dAt2dworDVFilgdLQotcL1d96KrwV3vC+6IyFxjdeuJfh1VnB BjW+sXYodOHt9CNUTVrq9TcM/8UIWnE2Nsb/E+/EAex+xbrft+JkxSC1JCo1t8eCmFlQMhWZF qhfbKd+D5uhLGzLu0fonRqs20bcIKv48WXIpxo+9pOQDUj0hTsL/svqwA86SauPbEd7gAwhV7 SXYNBTx1vAI21wlfX8ZDtSoz396x1kY2mPHqsCQyAfn9TWFbwNMQCUZZ0l2gDH6IHXVFups7K nwec0wYlVE10gb7/SZGmGK/u7Kyqztl1RXb+8SPgUzj9A2ZEkVmuuW5L7ADJPAY+ltM4OtsGg Fs+Ib+fpg0wcP8MG/yIYXRfKm4f2Fd4e3ALiRFwA+LnG8R3tTGmD9JhLZP7exSkIN+iHL1QSi gxEHaKJknOd22JGvdRb6kVzelxWBT90ceB9pZnHsi7s+LWTTg+lL/dhwTfcMRKwCjiu5Deptz d6LhUF6K3CIZFo0Wy7KX8+vlYgmc677H3wdGohSUCIQXi8NQ9aTJVlxnPL+YLbg0LeLAYiDoE 9TJUTrzG90pNUxd3N+JOrG2xUO5gGkySMd/+M6kWbQgpOPXOQWoDS1SMjNW3maZTaOF79ycsV rfj2EKUWlrqTw3nmKRPBKtUfeK//HOP/TjEtNsapwhUge1x0XKgpt2RySZDMGkFu3kv0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.72.192.75 Subject: [Qemu-devel] [PULL 06/14] linux-user: Fix mq_open X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lena Djokic , Riku Voipio , Riku Voipio Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Lena Djokic If fourth argument is NULL it should be passed without using lock_user function which would, in that case, return EFAULT, and system call supports passing NULL as fourth argument. Signed-off-by: Lena Djokic Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 3e88dd1..c1d6f76 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -11583,17 +11583,22 @@ abi_long do_syscall(void *cpu_env, int num, abi_l= ong arg1, case TARGET_NR_mq_open: { struct mq_attr posix_mq_attr; + struct mq_attr *pposix_mq_attr; int host_flags; =20 host_flags =3D target_to_host_bitmask(arg2, fcntl_flags_tbl); - if (copy_from_user_mq_attr(&posix_mq_attr, arg4) !=3D 0) { - goto efault; + pposix_mq_attr =3D NULL; + if (arg4) { + if (copy_from_user_mq_attr(&posix_mq_attr, arg4) !=3D 0) { + goto efault; + } + pposix_mq_attr =3D &posix_mq_attr; } p =3D lock_user_string(arg1 - 1); if (!p) { goto efault; } - ret =3D get_errno(mq_open(p, host_flags, arg3, &posix_mq_attr)= ); + ret =3D get_errno(mq_open(p, host_flags, arg3, pposix_mq_attr)= ); unlock_user (p, arg1, 0); } break; --=20 2.9.3 From nobody Sun Apr 28 15:28:13 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1487255626166166.86227133059833; Thu, 16 Feb 2017 06:33:46 -0800 (PST) Received: from localhost ([::1]:47029 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceN7s-0004Pt-3F for importer@patchew.org; Thu, 16 Feb 2017 09:33:40 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48497) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceMxJ-0002E6-Rc for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceMxI-0002Jy-Tn for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:45 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:50778) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ceMxI-0002J8-Jl for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:44 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0MJl3M-1cdGUZ2flE-0017Zk; Thu, 16 Feb 2017 15:22:35 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Thu, 16 Feb 2017 15:22:20 +0100 Message-Id: <20170216142227.27448-8-laurent@vivier.eu> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170216142227.27448-1-laurent@vivier.eu> References: <20170216142227.27448-1-laurent@vivier.eu> X-Provags-ID: V03:K0:s1AvYL3iDdflCb95tC7T9uLbU0+nHsscxupqZCy8qBFtn5ZaJUc gnUqRqvoDBpLGeNGyqVaoTAMbnQPc1gdmvEC8VIJGFWjOjLnOElMTm0vNWBUgClBCjKEgsI hlf70zXp9ZlHZ5dOmTSGz20h+xcYiKsAqc2dgQIKkXhok/ZpsoWxZ4bMCXssJUn//MocoFc ZyiRu2Dt8rgUUAI9o01DQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:2ZaNQHauYrw=:O5827hb+elgh8iuRrZnoOE XQjGjvrYpnzx36NgpQDEsV6t6HVNfbXPcZpX1hIhmYx0kBu2uVCk9DIDmtdPENMoMG5SLBeDS OZySfeXs4MZRQu15V/5SCvv41tq0HjzpV96sbrAHXq2RyXlq9/oKsnZotFnYyqh2cletJIbyn LxPG+LxY7xW89B8/Y4QlkPAcgN2nzda5qfmzYsIsSSdHLdyhnTIxLanDa78rpmOK1blNj1SP/ FHldyikokic7Q0jZiZ0iwFu+VacB+Jn/OzoxQZ7murNYFi7ytj+GvPBQ7Et/GplFWoe6Bd4mI LXXoYEickuzMRKtao3+3wIAfNlnQ+VCjcQywfLp/2ogPSZT5Fe3OOUa5y8pj8HwM3Jm9PaRXm Y4PLRlCOLiIJZh/ws9ZtwedUBbVnioYDnA8EKubTyoeeyOSOViezbnMvMUDA7qYGoKCG/bLb8 XVloUwVkowNwun8onxwVFGAFSwkIlzSy0MRLAlGE7joPXIDcxBK12BeDRAJ58nQYEZEElOg7g JumIlYf8uDcTJn9YtWWGwqMR8nNv1xGIaLyoAXh3pgtXCbQLJItXXzc7uvtPLrMQquqUZT4oq kQrzvRNFECbuDpq/jRYE0ufuB++ItjlFExVR8HFh1XVt4KgoTfZzxsGxXCiodqj1Ol+Fl9Jt2 HptVmCw9wSUnyXpqlqTx2JdjLm2kkEI3zTgq86ldykN/aXw37SV00F5rRmMlMGjJkyO0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.13 Subject: [Qemu-devel] [PULL 07/14] linux-user: manage two new IFLA host message types X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Riku Voipio , Laurent Vivier Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Add QEMU_IFLA_GSO_MAX_SEGS and QEMU_IFLA_GSO_MAX_SIZE in host_to_target_data_link_rtattr(). These two messages are sent by the host kernel when we use "sudo". Found with qemu-m68k and Debian etch-m68k (sudo 1.6.8p12-4) and host kernel 4.7.6-200.fc24.x86_64 Signed-off-by: Laurent Vivier Message-Id: <1477530049-15676-1-git-send-email-laurent@vivier.eu> --- linux-user/syscall.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index c1d6f76..d982a27 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -2326,6 +2326,8 @@ static abi_long host_to_target_data_link_rtattr(struc= t rtattr *rtattr) case QEMU_IFLA_GROUP: case QEMU_IFLA_MASTER: case QEMU_IFLA_NUM_VF: + case QEMU_IFLA_GSO_MAX_SEGS: + case QEMU_IFLA_GSO_MAX_SIZE: u32 =3D RTA_DATA(rtattr); *u32 =3D tswap32(*u32); break; --=20 2.9.3 From nobody Sun Apr 28 15:28:13 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1487256198303853.7339718926338; Thu, 16 Feb 2017 06:43:18 -0800 (PST) Received: from localhost ([::1]:47080 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceNHB-0004uz-1L for importer@patchew.org; Thu, 16 Feb 2017 09:43:17 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceMxT-0002es-JD for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceMxQ-0002MP-Ax for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:55 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:60349) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ceMxP-0002Ll-W3 for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:52 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0LjrTN-1c6xwT1ouv-00bptx; Thu, 16 Feb 2017 15:22:36 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Thu, 16 Feb 2017 15:22:21 +0100 Message-Id: <20170216142227.27448-9-laurent@vivier.eu> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170216142227.27448-1-laurent@vivier.eu> References: <20170216142227.27448-1-laurent@vivier.eu> X-Provags-ID: V03:K0:JFZaiF4nIh/B0zcUbwOW8LV7U0Iq3/NuCxgFM8Ec8flqGUbjHuB h4Stib5ulhX0W7sU0KyAPzQmFbCedNUdt11n+GhEXQoeb7VHKii0cBHhTtpbbUTFJBytDvu jp12UyGByn02txvIM0mOLn6ECKaH5FsJ0gKYgcAbkYJa/CAw5RBEyijgunWsvWY/N+xLYVs fWCWBeBn6vvlHPxpC9yog== X-UI-Out-Filterresults: notjunk:1;V01:K0:izAX3wgqMz4=:Hqtu3xCxhpsSjXwWw8YVYH rsX2pvuGsE6mM5L8W9jjoBs4n4VIYNf9jXWj8BVLNKlE7T/cRbVr9NKhaDlQk3E2cyZkKIe7U PAxuvL0MPrNLnrC1JI77AMuBRzOkm5CPdLiHivMQnLUHB61cFO9MnE+jF794sRS12pDfM+R0k zUnee3wwsy2VuvunJEhWmbb5F2F6cjHIUdWFeQE0bh0Dtb2wt5fYSQMeLx/3l/tTOmQPMN9p/ ioZQi0MnaTi8/1BVByChr0T5Otq+eZtJWZQWNj0TaLbSY0k9Nsk9tnrJz+HmYL5FPkgP7J/b4 Ki/1cVbYjXO7I1PYsqYxt82n9qi5UBpooYU6cXn1MpiHUcNSMpBwWl0hUpQa3uVz6ndK/io10 rFqkloYmsAlxQbNnT/wcZRneBs4eyKJ9E0paFNqy8zqxIkkzfJjs319dFuMZTAwaI8v23+UtH 9gjx4UCXN/aIbEQl5zT0GBIT+HwCCu8+snXT3c83qTroNYYZMdrhp77isiLS7v9l7kJKzHcrp +un4zyh6y/eQUtxPA5HkD+iMWg5Y17TxvbzRQUaFKVZkiJFAMN4mPuu0lhYpKr56V/pJvEOwV pAsSGay9hBlFApY7rH5s+hJy4IP2k5vn91pTSN248llxkiixx9XtUNSrzCVJr2woFn76w8va6 8i8zb6BLK2XmHMGN+7RPv4M9ykH+niXfX6iFIr9uSyukpccAKdNOsqTzJ6LmnnYTDmlw= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.10 Subject: [Qemu-devel] [PULL 08/14] linux-user: Update sh4 syscall definitions to match Linux 4.8 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Riku Voipio , Laurent Vivier , Adrian Glaubitz Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Adrian Glaubitz Signed-off-by: John Paul Adrian Glaubitz Reviewed-by: Laurent Vivier Message-Id: <20170116223140.18634-2-glaubitz@physik.fu-berlin.de> Signed-off-by: Laurent Vivier --- linux-user/sh4/syscall_nr.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/linux-user/sh4/syscall_nr.h b/linux-user/sh4/syscall_nr.h index e99f735..d6c1e05 100644 --- a/linux-user/sh4/syscall_nr.h +++ b/linux-user/sh4/syscall_nr.h @@ -372,3 +372,17 @@ #define TARGET_NR_process_vm_writev 366 #define TARGET_NR_kcmp 367 #define TARGET_NR_finit_module 368 +#define TARGET_NR_sched_getattr 369 +#define TARGET_NR_sched_setattr 370 +#define TARGET_NR_renameat2 371 +#define TARGET_NR_seccomp 372 +#define TARGET_NR_getrandom 373 +#define TARGET_NR_memfd_create 374 +#define TARGET_NR_bpf 375 +#define TARGET_NR_execveat 376 +#define TARGET_NR_userfaultfd 377 +#define TARGET_NR_membarrier 378 +#define TARGET_NR_mlock2 379 +#define TARGET_NR_copy_file_range 380 +#define TARGET_NR_preadv2 381 +#define TARGET_NR_pwritev2 382 --=20 2.9.3 From nobody Sun Apr 28 15:28:13 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1487255643354302.6121704065322; Thu, 16 Feb 2017 06:34:03 -0800 (PST) Received: from localhost ([::1]:47031 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceN8C-0004f3-3R for importer@patchew.org; Thu, 16 Feb 2017 09:34:00 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceMxQ-0002WH-0m for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceMxM-0002Kh-Ow for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:51 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:61189) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ceMxM-0002KS-ES for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:48 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0MDPP3-1cakJU0Izl-00Gp0v; Thu, 16 Feb 2017 15:22:37 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Thu, 16 Feb 2017 15:22:22 +0100 Message-Id: <20170216142227.27448-10-laurent@vivier.eu> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170216142227.27448-1-laurent@vivier.eu> References: <20170216142227.27448-1-laurent@vivier.eu> X-Provags-ID: V03:K0:LKGVnekKxDEj+96+wxpZyxOHMeJ1/s8Q9OCzMK0MfMHKPbfaQcZ kpGIBDF21kVeCRgMyIJrl3zaGUF5AW1t5WewHvr9YlkaOG0ZuUlpnUabIwvTAcrLN1kSqlS JciC2mLIeockf5FeFBUIbNEF7CtuXJu9fYgaAf4eCsZe7m75CJZiF2t4aLEe8odL/GH2bfs b7Uz71OOdwCHl9JiQEHxA== X-UI-Out-Filterresults: notjunk:1;V01:K0:IbMySov6PBs=:wYbMsuxxf2456Z+miyx8eg kbzxY9pyMuFChZyXms/8u13mBOaDBXrMW/+azHx65IMHQVxjcrtFm9NpEvOipAppAhxgfBcAD SeeeXz52V+0Ci+nIYj/1UZsMS8jwVPSMaPvaTt+i05Dz2Omujnph/NlfIpF6m1mF9cp8zOBUh Fmn5VpADAQe+iIMK3HSCIGlSUsAXxB/uodJRkSmYHY8+PoD/YQMos4BSRlLOyfGBGBgGs8T/f 5FPBSOW5PvNK7FfLlJaeeAGyH9Tvavc7AwZfIaZ95Y1hA0k9itw97KuUC4imsfl/uL7Y0Z9Pb TZ2zwiEdWFd34EF/qUJ5X/vmWsWLr54/387qfAdlTNsAjJ+Ss/UE5GAdt0pqM5cyGuJ1BiJ9i cd98Dy/8TEo7ZwAh20B6U+pUiQgHjus1GWzBLAe6JFXoHkVzv57CakeCD48RkLHLSbDsv1coZ VAS2hHdjEtwCQDMkl7BOLu1StrSBwxRkXY1/8VVDnRYSvnzRi8VbPdBc4v3sPO093Q8Rb+THZ CK4Ct4cz0e+EEm1iMpWen3eQ0EhEM+b/G3dUXWjUg0LvJnxClUzZWuEUhETl0pXIU8oaDPI1u z3KfHAr6bYgQC4ttbXmM2F8wOtMkEV6+iZRrVKZCld5a5FzrklxKVuEZiU503hOtek7H2TEAF pcZHjT6/WRwV+jOrTYQxhhqUdIDYx9JzPw1j+6upKOILouW85+yjYHjYXr20FL8+WKrM= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.72.192.74 Subject: [Qemu-devel] [PULL 09/14] linux-user: Update m68k syscall definitions to match Linux 4.6 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Riku Voipio , Laurent Vivier , Adrian Glaubitz Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Adrian Glaubitz Signed-off-by: John Paul Adrian Glaubitz Reviewed-by: Laurent Vivier Message-Id: <20170116224915.19430-2-glaubitz@physik.fu-berlin.de> Signed-off-by: Laurent Vivier --- linux-user/m68k/syscall_nr.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/m68k/syscall_nr.h b/linux-user/m68k/syscall_nr.h index 4b50fb2..d239551 100644 --- a/linux-user/m68k/syscall_nr.h +++ b/linux-user/m68k/syscall_nr.h @@ -376,3 +376,6 @@ #define TARGET_NR_userfaultfd 373 #define TARGET_NR_membarrier 374 #define TARGET_NR_mlock2 375 +#define TARGET_NR_copy_file_range 376 +#define TARGET_NR_preadv2 377 +#define TARGET_NR_pwritev2 378 --=20 2.9.3 From nobody Sun Apr 28 15:28:13 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1487255923826432.58835913616485; Thu, 16 Feb 2017 06:38:43 -0800 (PST) Received: from localhost ([::1]:47057 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceNCj-0008U4-9J for importer@patchew.org; Thu, 16 Feb 2017 09:38:41 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceMxT-0002ef-B1 for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceMxS-0002NN-0e for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:55 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:64491) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ceMxR-0002Ml-Ls for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:53 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0MBkiF-1cUhty3ZuZ-00Ambv; Thu, 16 Feb 2017 15:22:38 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Thu, 16 Feb 2017 15:22:23 +0100 Message-Id: <20170216142227.27448-11-laurent@vivier.eu> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170216142227.27448-1-laurent@vivier.eu> References: <20170216142227.27448-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:r0Suwn+LBcmY6Ubj8JlPdE0YJfbmKUu8we9G4RJNHDBfDNz+gOS reXR3/Ynla4xGFPlkiZg147yxZGerb+Cy3Erwpjmt2fgyLzoHhMwDwa3M+xGqiL5CwQf8EL WQ87XSVpfmgTxhGnOVpORGtXShF2xUmDlzQhmkHhLUnFBLCid3Z3ZreyWIqRhhPBbAQVvi4 t2zFASYk3qDv30QLdhTfA== X-UI-Out-Filterresults: notjunk:1;V01:K0:4Ob5O+1SfcI=:+Q9XKu9nwvXfPZPtOgKW5t AXoBrpZOhLqQt1Lp+jYs55CThizAGgCXQ+hsKfRupue/3obMmkRtuFP4vycNtN2TuHvV8P7Hw OOAwiy9NCKF/IqeDczWDB7CxvQ/Nb9YZkywISYcb6KgOvqliGMidDtoRoabaz4+4N1PAJu0BD 5FxrL8FUxJhIbgVq6e0l0C4uBnNQRYbgQtMsOo2H75AhLz95DuSH27jVYxy/b/K9a5MdIEc1C NrPlsfsaQ7fSm/0LSpuPnIdb7fKdBvpaICaLCueGwdsoJPRNNBMFsiBbDl7VvC/Fy9C4NjwVC 7yt87f34jQrfHMTviXD5wYH3eBRCIyf+KnSwxekVmlGAcWdmSQRp3iX5QyIv6yGr9ArnHZlq6 QHOE+aGe5FhHKhH0O39dwmeq84+9RGmvqtgpnv4/sx3TbLwyr6mKjixZsdLOP2NrztsnIOVz5 K3XrfZaA2dd5kfLXxl6/ZGZbzJkWYj/n0jiLbJFkaEAfJSGr/Uz97cBIEZcY5fDXhVnHlb0mm i0PqirZ0GTQ+64E9xv8jeMwL4SmHnPXvLTHsen3W6blzaSkYEF0qES+EyZt8Jgw7amZxvG8Hi /SAZkbG88DM67+GqYWhX7tWcZWIQBKuVOpc8apFuoAGGKe5QPmHJfitQLgAVzW5ViiA9fI9Ti PhuF4K1qs0pzFDZ2LbhwITxrx+FtRVvcAv4F1sAVq+zvUBBzPRvyNY4daVtkhX2+qKl7zfCrS rGQDk+O+gsWLsyXD X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.72.192.74 Subject: [Qemu-devel] [PULL 10/14] linux-user: fix settime old value location X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Pranith Kumar , Riku Voipio , Laurent Vivier Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 From: Marc-Andr=C3=A9 Lureau old_value is the 4th argument of timer_settime(), not the 2nd. Signed-off-by: Marc-Andr=C3=A9 Lureau Signed-off-by: Pranith Kumar Reviewed-by: Laurent Vivier Message-Id: <20170119151533.29328-1-bobby.prani@gmail.com> Signed-off-by: Laurent Vivier --- linux-user/syscall.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index d982a27..f569f82 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -12043,10 +12043,14 @@ abi_long do_syscall(void *cpu_env, int num, abi_l= ong arg1, timer_t htimer =3D g_posix_timers[timerid]; struct itimerspec hspec_new =3D {{0},}, hspec_old =3D {{0},}; =20 - target_to_host_itimerspec(&hspec_new, arg3); + if (target_to_host_itimerspec(&hspec_new, arg3)) { + goto efault; + } ret =3D get_errno( timer_settime(htimer, arg2, &hspec_new, &hspec_o= ld)); - host_to_target_itimerspec(arg2, &hspec_old); + if (arg4 && host_to_target_itimerspec(arg4, &hspec_old)) { + goto efault; + } } break; } --=20 2.9.3 From nobody Sun Apr 28 15:28:13 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1487256286479479.28596008157535; Thu, 16 Feb 2017 06:44:46 -0800 (PST) Received: from localhost ([::1]:47089 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceNIa-0006SD-8m for importer@patchew.org; Thu, 16 Feb 2017 09:44:44 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceMxU-0002fG-3r for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceMxQ-0002Mp-Ti for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:56 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:64456) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ceMxQ-0002M3-Ff for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:52 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0Lo0CW-1cBcmM2Ip6-00fwUy; Thu, 16 Feb 2017 15:22:38 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Thu, 16 Feb 2017 15:22:24 +0100 Message-Id: <20170216142227.27448-12-laurent@vivier.eu> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170216142227.27448-1-laurent@vivier.eu> References: <20170216142227.27448-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:c9OXB3oXzuq0MCzqa6HCV1+3rkGT9NTOpJGr9FotrftdJs7XdZt 0Oij5NKA8AjpVFg9GfbMGsH5tvzQvZUj/Wpn7+62ieuHIun12tXLGxsIus4LukreMC6F3Sg Wb5lXCO5aAiqoI2A+S4j4Pn61Np/5aB8g9j4ay+7k2Z8gH4J08wSYCNF7oquQk3NfqCw8d1 LoqK/Q1AXkCbqitPTPQQA== X-UI-Out-Filterresults: notjunk:1;V01:K0:rqXf4ZctgXQ=:uK9kQWEe78/iJ0Vg11Mj2K 7dLJs6FXTnTPrniisy3KW6glmqtirEhzJBsQ7SDhwcxs1skOVWuvtsny+xrKiXWxkvkZIMBPv siVp3WcRwiJu3B1UqRwu8Z8yONVUJpER9ccd7PV/KcQQuWG7BXuPmx9Qc3KcW2qvELIfb5p6i N9oJ908fbJMwUbhKdsq9a7zRhX/f+u2nLM2jy+3gq/7Svi78eERrNg1GlyGyOBM5xS/pje4KZ KN2naBaLb+RKzmYO3/8OZuqCBP72NX5LFZZrN+2+cdEmwb1AKLi5AnBtIW69aLzKGcgvK4+tw Y7MnZuQKGAAhr/7pSzSAyrYgEIcxhs7yjeOFnFYzlIgQXqmc0kCY5MWwtCoAhP8wDUgh/TFZj ZLMj1eTWexK4UPzW98xIE93ZNpMSPYCSt+++FLBXVNQjrYQQSOu+gmi31Ly/5msvk8QbsLnBA iAsqKLLzdbV1uDV2sEcXii10QYDX7m37rkM2n+ESy+3z3qXYSpRCnXuVp9CZeyT/YMW/2dwEE hoHCGy5bCp5B9OuKxpKxNE6PK1aYJkP9JKSdx5yH2/RgDM6WRkr68Ch9aPldb5M3PbeU5UwWW J4c1yURz0Y7VNJVCoGllUcHGeXEmp3B9D2buFe6sqFeqz/Q7aJVTLizvYaYAHge3VmIaj1+n3 FnvxISsBz5bt1pJrG7fzR7SE7H1rZyaF1URvmsJol+N7pgmxmckgFs6kE++/gIre7WIOsFcwl BJYnROA+XE1VLf3b X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.72.192.75 Subject: [Qemu-devel] [PULL 11/14] linux-user: fix tcg/mmap test X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Pranith Kumar , Riku Voipio , Laurent Vivier Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 From: Marc-Andr=C3=A9 Lureau tests/tcg/mmap test fails with values other than default target page size. When creating a map beyond EOF, extra anonymous pages are added up to the target page boundary. Currently, this operation is performed only when qemu_real_host_page_size < TARGET_PAGE_SIZE, but it should be performed if the configured page size (qemu -p) is larger than qemu_real_host_page_size too. Signed-off-by: Marc-Andr=C3=A9 Lureau [pranith: dropped checkpatch changes] Signed-off-by: Pranith Kumar Reviewed-by: Alex Benn=C3=A9e Reviewed-by: Laurent Vivier Message-Id: <20170119151533.29328-2-bobby.prani@gmail.com> Signed-off-by: Laurent Vivier --- linux-user/mmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linux-user/mmap.c b/linux-user/mmap.c index 4ed9cad..4888f53 100644 --- a/linux-user/mmap.c +++ b/linux-user/mmap.c @@ -426,9 +426,9 @@ abi_long target_mmap(abi_ulong start, abi_ulong len, in= t prot, may need to truncate file maps at EOF and add extra anonymous pages up to the targets page boundary. */ =20 - if ((qemu_real_host_page_size < TARGET_PAGE_SIZE) - && !(flags & MAP_ANONYMOUS)) { - struct stat sb; + if ((qemu_real_host_page_size < qemu_host_page_size) && + !(flags & MAP_ANONYMOUS)) { + struct stat sb; =20 if (fstat (fd, &sb) =3D=3D -1) goto fail; --=20 2.9.3 From nobody Sun Apr 28 15:28:13 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1487256010299364.2432429807021; Thu, 16 Feb 2017 06:40:10 -0800 (PST) Received: from localhost ([::1]:47062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceNE8-0001WQ-6s for importer@patchew.org; Thu, 16 Feb 2017 09:40:08 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceMxT-0002eW-8A for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceMxR-0002NF-OX for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:55 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:62026) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ceMxR-0002MT-Db for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:53 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0LuMNz-1cD2Ua16WN-011mlr; Thu, 16 Feb 2017 15:22:39 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Thu, 16 Feb 2017 15:22:25 +0100 Message-Id: <20170216142227.27448-13-laurent@vivier.eu> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170216142227.27448-1-laurent@vivier.eu> References: <20170216142227.27448-1-laurent@vivier.eu> X-Provags-ID: V03:K0:b3n/dMTXHT9hOAhFTPuscVQ6iwcN813X0mA4mbGD85DUS6O7rT1 TXlnFfdt3PsesMv+h2fM24mt1LPeYSDfpK0tERUhas8nvzVxRpyypultzJ6ko7YwAAZixpV FAwcNS5JKUBxh4jKB9SdEL55jqljfipmf0n7PKUKt5DQelFGn1LiaZOk5pl/rUCsJtTWvkF /9tDU6dwoYX/gciWo9Udg== X-UI-Out-Filterresults: notjunk:1;V01:K0:OX5Fp8lqj8c=:fFNLuJ+KWkesmzY5kA8ZcF juLerwF60T75T/rDmqkxGsr6YJ1KY3Xfa9PlHWPKnl/+5G96f9/NxtiVELo+yaJ7gIMUC9jDX N0HTpEC1T1+eY/W8Q3MSYaWwWavFME9GJMuXQYItU09DYD6YboXV994oo8eDShGH9/TzaOzX8 YSCklGLLhQ7HfAPaOAgiPFflmtt7h6FQ5JGj4tG/LXFio6ndIFRtbl3PEUrC7LQUOVXIxNCnE LRo5/ErHEaYG/wxIfBh7X4+3n4j3PumPIvKZOQfZLPSzrsS8U+rdzFZmhfbRo0fIvTZjBkMhO yfyNaNwuxJD2Nb64FXWyObSmQLPDyuVsMHR2S4qiiGtXA9FW20swBOcOPA+9JT0+KoaMUsckI zKmKkNbQy0aPcim5+hl0MUHwSf2j1Waj4hvVWjMwfHqMIHShA3jPy4cQBveMLdSSHTDW8OhUW XfAvSZ9QNtc2zJdWn2fijQgkLyxxQdN3sVokTJxZiQIog6Oy4SLyzf7D1GkZ26C7MyLVN1YWK 22Z4RKTEPzS1YlBev4fgpUmIWffDyQaZgMAL7bTaIWlUe1PzY4D4IMiFA8QYgCO3speGSVOtE 7c+ghxO9qOz8YgE9rdLGXCWQvr7gs2Zd//RpfeGfp4BYM9djLPIQ+BLzlK1jNADib5xL4Uo26 lxLGs4TZQdacZd4VwwrSAFKBp5xE5OjkvjL6WYqFkgSRWn088eWYdIJWkTjjgtjxLaPM= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.72.192.74 Subject: [Qemu-devel] [PULL 12/14] linux-user: fill target sigcontext struct accordingly X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Riku Voipio , Jose Ricardo Ziviani , Laurent Vivier Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Jose Ricardo Ziviani A segfault is noticed when an emulated program uses any of ucontext regs fields. Risu detected this issue in the following operation when handling a signal: ucontext_t *uc =3D (ucontext_t*)uc; uc->uc_mcontext.regs->nip +=3D 4; but this works fine: uc->uc_mcontext.gp_regs[PT_NIP] +=3D 4; This patch set regs to a valid location as well as other sigcontext fields. Signed-off-by: Jose Ricardo Ziviani Reviewed-by: Laurent Vivier Message-Id: <1485900317-3256-1-git-send-email-joserz@linux.vnet.ibm.com> Signed-off-by: Laurent Vivier --- linux-user/signal.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/linux-user/signal.c b/linux-user/signal.c index 5064de0..8209539 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -5155,6 +5155,7 @@ static void setup_rt_frame(int sig, struct target_sig= action *ka, target_ulong rt_sf_addr, newsp =3D 0; int i, err =3D 0; #if defined(TARGET_PPC64) + struct target_sigcontext *sc =3D 0; struct image_info *image =3D ((TaskState *)thread_cpu->opaque)->info; #endif =20 @@ -5183,6 +5184,10 @@ static void setup_rt_frame(int sig, struct target_si= gaction *ka, #if defined(TARGET_PPC64) mctx =3D &rt_sf->uc.tuc_sigcontext.mcontext; trampptr =3D &rt_sf->trampoline[0]; + + sc =3D &rt_sf->uc.tuc_sigcontext; + __put_user(h2g(mctx), &sc->regs); + __put_user(sig, &sc->signal); #else mctx =3D &rt_sf->uc.tuc_mcontext; trampptr =3D (uint32_t *)&rt_sf->uc.tuc_mcontext.tramp; --=20 2.9.3 From nobody Sun Apr 28 15:28:13 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1487256603728636.4971747160588; Thu, 16 Feb 2017 06:50:03 -0800 (PST) Received: from localhost ([::1]:47119 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceNNi-0006zR-OO for importer@patchew.org; Thu, 16 Feb 2017 09:50:02 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48464) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceMxH-0002BJ-IS for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceMxG-0002Ia-9I for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:43 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:60047) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ceMxF-0002I9-TF for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:22:42 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0Lcxai-1bwCQp3dL6-00iBYG; Thu, 16 Feb 2017 15:22:40 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Thu, 16 Feb 2017 15:22:26 +0100 Message-Id: <20170216142227.27448-14-laurent@vivier.eu> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170216142227.27448-1-laurent@vivier.eu> References: <20170216142227.27448-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:wyuyzBPmCPzD/S6R/fAuuGX0d0eKWbV4BI4kr2BKoGOZRtzztAM 0uFDoMq7PxjzHAuNWXaYwZa3O1wNlO0PPeKgr/FHKMLuAbnrzKu5yEL6He2zbU0cb9R4Bzj gfMYMQPuHa43lJLlIeRe5lyDAM3PAQYVyQ2EtL117A0ueP6+l4/MWB4/Vset6Q7HyUoK4G9 PUyll4WXOzWeFjrS0P8hg== X-UI-Out-Filterresults: notjunk:1;V01:K0:A9U/ue4JLN8=:GskzxuTWQyuuWaA+viSL1W wylFPLI3ndMy3ui+p7FWQGpBC7BKbn/diSoNfoCrb8qnwhs4Q4zqr02KmIsyewzgJ8sdzYkIx Yy9QbTPPFpbtbXm97XCP9ciPIQPIycyTV0yEq8ZewgWEK0ctuBYNCyCp3IJ5d9ZlZid2r1eez +YLidgxMS7ixBx0NvwoFax0wt4sQbGJVJDzvRe5SL5K94Mzcs3ufRo94qaMedEMz3E9ZyfyIL G3SkCjcFiGJicnI4j24+U2U3CeYcWIRB86APKpFWs8lBC/XfMc9gytIDlmSz0cLuR1P0quEUP 7H8z5rJFiL+2T7FJJzg0H3KXA55zS5LicgXLYOZ4YDEgsbivzXR+QBAHDS3OFQGRpzxheFN0u 8cDobVf+wtnhnBr/I7FvRvuqIABBK8qtoTWQHXNJx8r75uA+otqGkRgbEup91Fw/aKHbzjzru 1BTvQkggR899K8AI9wW2eYFiSjUr1sBAnMVL/oqsZoN4hBBlnwPKvlYV1HTHDopZbjL0EVBWD ZdbTUbL6UWK95dtI7DeE0zuLnon8pt6wCnKkQUMThJYOYa3AxHHrNRhrts0C8LunXfbZXs7yw XYaCVXwaL7EN/9hUVUNB2DaygGMT1kONa+C9voJf4VlbY/7UbCK21enUYtBBmVCeMocds3t63 5R70qc4ZB03HRHfiQuIoWGNyN6wnsGZMPjwS0xR4uqTRd+PENwha9/nsFc0sPYRfFNMXInz2Z ej9/5lFZpbOZQRCl X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.13 Subject: [Qemu-devel] [PULL 13/14] linux-user: Use correct types in load_symbols() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Riku Voipio , Laurent Vivier Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 From: Peter Maydell Coverity doesn't like the code in load_symbols() which assumes it can use 'int' for a variable that might hold an offset into the guest ELF file, because in a 64-bit guest that could overflow. Guest binaries with 2GB sections aren't very likely and this isn't a security issue because we fully trust the guest linux-user binary anyway, but we might as well use the right types, which will placate Coverity. Use uint64_t to hold section sizes, and bail out if the symbol table is too large rather than just overflowing an int. (Coverity issue CID1005776) Signed-off-by: Peter Maydell Reviewed-by: Laurent Vivier Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <1486249533-5260-1-git-send-email-peter.maydell@linaro.org> Signed-off-by: Laurent Vivier --- linux-user/elfload.c | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 8271227..f520d77 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -2262,6 +2262,7 @@ static int symcmp(const void *s0, const void *s1) static void load_symbols(struct elfhdr *hdr, int fd, abi_ulong load_bias) { int i, shnum, nsyms, sym_idx =3D 0, str_idx =3D 0; + uint64_t segsz; struct elf_shdr *shdr; char *strings =3D NULL; struct syminfo *s =3D NULL; @@ -2293,19 +2294,26 @@ static void load_symbols(struct elfhdr *hdr, int fd= , abi_ulong load_bias) goto give_up; } =20 - i =3D shdr[str_idx].sh_size; - s->disas_strtab =3D strings =3D g_try_malloc(i); - if (!strings || pread(fd, strings, i, shdr[str_idx].sh_offset) !=3D i)= { + segsz =3D shdr[str_idx].sh_size; + s->disas_strtab =3D strings =3D g_try_malloc(segsz); + if (!strings || + pread(fd, strings, segsz, shdr[str_idx].sh_offset) !=3D segsz) { goto give_up; } =20 - i =3D shdr[sym_idx].sh_size; - syms =3D g_try_malloc(i); - if (!syms || pread(fd, syms, i, shdr[sym_idx].sh_offset) !=3D i) { + segsz =3D shdr[sym_idx].sh_size; + syms =3D g_try_malloc(segsz); + if (!syms || pread(fd, syms, segsz, shdr[sym_idx].sh_offset) !=3D segs= z) { goto give_up; } =20 - nsyms =3D i / sizeof(struct elf_sym); + if (segsz / sizeof(struct elf_sym) > INT_MAX) { + /* Implausibly large symbol table: give up rather than ploughing + * on with the number of symbols calculation overflowing + */ + goto give_up; + } + nsyms =3D segsz / sizeof(struct elf_sym); for (i =3D 0; i < nsyms; ) { bswap_sym(syms + i); /* Throw away entries which we do not need. */ --=20 2.9.3 From nobody Sun Apr 28 15:28:13 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1487256478686286.7589359236814; Thu, 16 Feb 2017 06:47:58 -0800 (PST) Received: from localhost ([::1]:47107 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceNLg-0004AK-FD for importer@patchew.org; Thu, 16 Feb 2017 09:47:56 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceMxe-000390-PT for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:23:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceMxa-0002Tk-LR for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:23:06 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:60638) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ceMxa-0002TK-An for qemu-devel@nongnu.org; Thu, 16 Feb 2017 09:23:02 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0MMF5h-1cja1726jl-007zKH; Thu, 16 Feb 2017 15:22:40 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Thu, 16 Feb 2017 15:22:27 +0100 Message-Id: <20170216142227.27448-15-laurent@vivier.eu> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170216142227.27448-1-laurent@vivier.eu> References: <20170216142227.27448-1-laurent@vivier.eu> X-Provags-ID: V03:K0:0FUiXclIW5obkXOwDgT2VrnRoIY19zpve40YMQhA/G8TUrxgp5a G7qAqPICp23FP3NtRAYsLb4+aMB1tOOupF7FcTBbkNGk885+RT0Jd/W7IDHaC9J3io3BBCc B14i6OdVf5oIUKo1C6u3G9T/b2tnselIQ4+rcLLiEr5NLmNR4UnDHi/O7hNlL9vnOK11Ky1 5+9DJuNH1iTfzSr5mlAyA== X-UI-Out-Filterresults: notjunk:1;V01:K0:nRzi03Uwp8U=:NxeZutcZ7/Ma/c2fEuaLUk kjmLPU4mNYAVyyA6pOOieeZ2uKdf4OUsB+JHnLHTdVovGXe5lYOZPjoHq8JOC6rO4sMhxZluR GL56ojFQ/xzqKP2OBPsFPrrrZt/56oTbEYJBdbADQ/7vjIO+AaNFOvJT44SpcIgWuJiDnu65S R6BVYzP69lMDR+hY1FBU32bYrdtvYw1y94aDvKSrUH7IDQnXxjYRa2UjzsSyZesWxCgLLk+xO mLskLA3+Hk4Q9WuijJorI4WAwOCuilfhZ0kY+ACJs6k6pvl41YH0hGC1MO6jsbR06xsPaeslT zqSTVgCNZydM6y2Jw3tOz9dgLba/1G5NsvGPefHl0TM6NJfq/Iy8UNSSFi4Ou0Mx41TAKjpfa R2Kpk/sAinzrK8rrjIa+4lhgcgGlFLd0j9mP0QuA71+nZN0rA5X7djAmY5r/hbukjVwoHfRg+ UoRYCsv6M6bWwqbrM3YqbwVCkToLa3dKovsId0vWIsVmBvDscp4FUbzwnCzV8kZChFrbqi02y C6j3WwHapieQ9UNkYDllvs/9Yemactrkk+MtLYmnT6mlK/YH4JeUrish677prGyyroeoCztZ3 DUawEXKIA4ZqeKAknAe0R71/orGXtASA9K0FYrjr1HDVqDsp0JQotrVVUJhlNOOORJr2zpB/Y 04hJnZLfmE+7qY6a0aG1R/E5f9xarGefVBFK/d3BmSCRx64VAe673vitHIb+8LdwMHPk= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.10 Subject: [Qemu-devel] [PULL 14/14] linux-user: Add FICLONE and FICLONERANGE ioctls X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Helge Deller , Riku Voipio , Laurent Vivier Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Helge Deller Add missing FICLONE and FICLONERANGE ioctls. Signed-off-by: Helge Deller Reviewed-by: Laurent Vivier Message-Id: <20170211222602.GA6399@ls3530.fritz.box> Signed-off-by: Laurent Vivier --- linux-user/ioctls.h | 5 +++++ linux-user/syscall_defs.h | 4 ++++ linux-user/syscall_types.h | 6 ++++++ 3 files changed, 15 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 2f6e85b..e6997ff 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -112,6 +112,11 @@ #ifdef FIBMAP IOCTL(FIBMAP, IOC_W | IOC_R, MK_PTR(TYPE_LONG)) #endif +#ifdef FICLONE + IOCTL(FICLONE, IOC_W, TYPE_INT) + IOCTL(FICLONERANGE, IOC_W, MK_PTR(MK_STRUCT(STRUCT_file_clone_range))) +#endif + #ifdef FIGETBSZ IOCTL(FIGETBSZ, IOC_R, MK_PTR(TYPE_LONG)) #endif diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 4442c22..72ca5b1 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -1086,6 +1086,10 @@ struct target_pollfd { =20 #define TARGET_FIBMAP TARGET_IO(0x00,1) /* bmap access */ #define TARGET_FIGETBSZ TARGET_IO(0x00,2) /* get the block size used fo= r bmap */ + +#define TARGET_FICLONE TARGET_IOW(0x94, 9, int) +#define TARGET_FICLONERANGE TARGET_IOW(0x94, 13, struct file_clone_range) + /* Note that the ioctl numbers claim type "long" but the actual type * used by the kernel is "int". */ diff --git a/linux-user/syscall_types.h b/linux-user/syscall_types.h index 2b8c0c6..24631b0 100644 --- a/linux-user/syscall_types.h +++ b/linux-user/syscall_types.h @@ -232,6 +232,12 @@ STRUCT(dm_target_versions, STRUCT(dm_target_msg, TYPE_ULONGLONG) /* sector */ =20 +STRUCT(file_clone_range, + TYPE_LONGLONG, /* src_fd */ + TYPE_ULONGLONG, /* src_offset */ + TYPE_ULONGLONG, /* src_length */ + TYPE_ULONGLONG) /* dest_offset */ + STRUCT(fiemap_extent, TYPE_ULONGLONG, /* fe_logical */ TYPE_ULONGLONG, /* fe_physical */ --=20 2.9.3