Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C29B5C001DF for ; Tue, 18 Jul 2023 15:08:08 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qLmI8-0001Uc-TF; Tue, 18 Jul 2023 11:07:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qLmI6-0001UH-Rj for qemu-devel@nongnu.org; Tue, 18 Jul 2023 11:07:06 -0400 Received: from bonnix2.bonnix.it ([37.247.49.194]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qLmI4-0006xr-Kj for qemu-devel@nongnu.org; Tue, 18 Jul 2023 11:07:06 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 bonnix2.bonnix.it C21FDADCAE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bonslack.org; s=20220805; t=1689692818; bh=2Fyc//DmT2CQOWmf0ShPZ2jXkjHCgN92oP75W9gMf2o=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=ScOWpoBPKsCw2F/QpY6WpDQc1UuAApK+RjNQXbQroqRW2EixNIQrfXUAENEZ0/ob7 x+TM1EkJ2Ef9o0vuVbX6blt4NY1W095LT3o04QQKaIoKdXlDRConzwTz8qSyJbCI64 DeLpZmxZzqq0EB4pGpqngG9au3lrJmS845N//dC0= Received: from [10.0.0.152] (unknown [82.84.102.14]) by bonnix2.bonnix.it (Postfix) with ESMTPSA id C21FDADCAE; Tue, 18 Jul 2023 17:06:58 +0200 (CEST) Message-ID: Date: Tue, 18 Jul 2023 17:06:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH] Wrong unpacked structure for epoll_event on qemu-or1k (openrisc user-space) Content-Language: it, en-US To: Peter Maydell Cc: qemu-devel@nongnu.org, Laurent Vivier References: <750c569e-a922-d3bb-1f97-1698960d5b05@bonslack.org> From: Luca Bonissi In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=37.247.49.194; envelope-from=qemu@bonslack.org; helo=bonnix2.bonnix.it X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.095, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On 18/07/23 16:40, Peter Maydell wrote: > Hi; thanks for this patch. Unfortunately we need patches > to include a Signed-off-by: line that says you're legally > OK with it being contributed to QEMU, or we can't take them. Sorry for the missing "signed-off-by" line, adding it just now: ============== 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: Signed-off-by: Luca Bonissi --- diff -up a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h --- a/linux-user/syscall_defs.h 2023-03-27 15:41:42.000000000 +0200 +++ b/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