From nobody Mon Dec 15 02:54:42 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1643659594268318.98800876088285; Mon, 31 Jan 2022 12:06:34 -0800 (PST) Received: from localhost ([::1]:52124 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nEcwb-00032s-EC for importer@patchew.org; Mon, 31 Jan 2022 15:06:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEcnZ-0004jl-M7 for qemu-devel@nongnu.org; Mon, 31 Jan 2022 14:57:14 -0500 Received: from [2607:f8b0:4864:20::131] (port=41853 helo=mail-il1-x131.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nEcmz-0002bk-Gp for qemu-devel@nongnu.org; Mon, 31 Jan 2022 14:56:39 -0500 Received: by mail-il1-x131.google.com with SMTP id 15so12391586ilg.8 for ; Mon, 31 Jan 2022 11:56:37 -0800 (PST) Received: from dune.bsdimp.com (50-253-99-174-static.hfc.comcastbusiness.net. [50.253.99.174]) by smtp.gmail.com with ESMTPSA id j2sm1972989ilu.82.2022.01.31.11.56.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jan 2022 11:56:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kr3WAg3LFuIjGK7Kv0poOIctPcCnCwAaBtFgS4qf/b0=; b=u1Ldz/wJzFV4X9Q92P1sBl9Tnp18AhpT6hVph82SyBvOaVwhNgv7lVbqy1gZo0CGF0 B+WEEyh5XBih30gL19n3A/D4TUFnWqFvPgaLruqdo0SpuuKlEuxpYQi8fVl1QziMVugd 2d4QaTsGu8nPk3NyoPETZjQxjhASwvrrWO4icPBVFA3AgnP9m5yQgMdUeSWzxKLsfkeo jqUYUVTbJZQb7LL/r9OI1VvATuEsPs6LsXvHcjORuzgJHj0wwD05HyrDRN1y7TgngcBG ZfHbGgp/aqCZMqh3ICI6igPY4aa+JUK+8WCo7BUcgE+HZEZDnTtgZNnb+Mwp1C2QwaxU rrOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kr3WAg3LFuIjGK7Kv0poOIctPcCnCwAaBtFgS4qf/b0=; b=lxViE0QdkzZzCncsTijW3PlIp0OwVsJ1Lnqk0O9Afeie5ZU6pjQK7NnpnPB8mZZXss wM57q8oZGpNznrgMnRM1De4ZiNA8acnWLj+tJo5quoqlDZ9H6yIiDN1X+BCraEkdZuLT KE8kXSpBsiZ9KUp6aRGDPHspj+w+/U/VwUz5NoCBuVkp1cf1Z5feYEns0MpKZ8mPGo8p LDjmh+Y7TJ8NTgoHF5+Y4NoXkEkHjySGD29eX0rOuWU6TU7Rdb7N7hJnRnZNXg5CcAzI r0Iwk9m7V6pbJGZNlIU6pX8HXDctyBe7ZVHmXAq+QNcQWpj82vXm6qRCeJnUyOyQYqvb JwCQ== X-Gm-Message-State: AOAM533iccgGIxZMMPDpTYoIwcDWXWONg1tuP6qyhFmAWbA8mdsBT0Ob XQ9RLne3m2AfZIoSxEsWc000Mxesz7mAJQ== X-Google-Smtp-Source: ABdhPJzk68R8J6qVUJfIbZwhdptQQLqu6Tezv+Q+JGCGu/gwek2gvqDIjts3I65ue4tMfSKIVWQgUA== X-Received: by 2002:a05:6e02:18c9:: with SMTP id s9mr14159992ilu.294.1643658996259; Mon, 31 Jan 2022 11:56:36 -0800 (PST) From: Warner Losh To: qemu-devel@nongnu.org Subject: [PULL 06/40] bsd-user: Bring in docs from linux-user for signal_pending Date: Mon, 31 Jan 2022 12:56:02 -0700 Message-Id: <20220131195636.31991-7-imp@bsdimp.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220131195636.31991-1-imp@bsdimp.com> References: <20220131195636.31991-1-imp@bsdimp.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::131 (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::131; envelope-from=imp@bsdimp.com; helo=mail-il1-x131.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: Peter Maydell , Kyle Evans , Richard Henderson , def@FreeBSD.org, jrtc27@FreeBSD.org, Warner Losh Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1643659596049100001 Content-Type: text/plain; charset="utf-8" This is currently unused, so no code adjustments are needed. Signed-off-by: Warner Losh Reviewed-by: Richard Henderson --- bsd-user/qemu.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h index 4dd209e402d..671b26f00cc 100644 --- a/bsd-user/qemu.h +++ b/bsd-user/qemu.h @@ -86,7 +86,14 @@ typedef struct TaskState { struct image_info *info; =20 struct emulated_sigtable sigtab[TARGET_NSIG]; - int signal_pending; /* non zero if a signal may be pending */ + /* + * Nonzero if process_pending_signals() needs to do something (either + * handle a pending signal or unblock signals). + * This flag is written from a signal handler so should be accessed via + * the qatomic_read() and qatomic_set() functions. (It is not accessed + * from multiple threads.) + */ + int signal_pending; =20 uint8_t stack[]; } __attribute__((aligned(16))) TaskState; --=20 2.33.1