From nobody Tue Nov 26 08:56:01 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1709352876; cv=none; d=zohomail.com; s=zohoarc; b=c5zaLk/ymSP9aYb+ibyzg0OFRUtPJbvjBqq/eZ/QPt5qXrsIQZ7wplkabuU2EHMeTnScGF6p7K5tHsHeKhsD1hDbgROwmaeaA95zTiYNtIExb+5qK5+em6f4+XoZNzoA2bwk3kT4QcF2IcbhbcFFInZ03OiJmxPL0ot6mnsZxQs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1709352876; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=72XxUBIqz7vi+7Nek64Y5gomRVx4hdx3L9w0Ay29Drg=; b=BhyfVVuHqKBWQwVO1nRvQZdHd4NbLEHHs0omNGmmcuM46p3/14yZUPPY69xe968ONRWGAL/Z7qEYuJ5zN4cSDG8mxJfIlK8Mw/JTjyZNT7HJ207XZyGd/d4mJGCgbe3qFHeQDDH55KxvD50/rDk9ieeD/U7tFXyugZLrFSLcEf4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1709352876822444.41484409417296; Fri, 1 Mar 2024 20:14:36 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rgGjH-0005M3-Qn; Fri, 01 Mar 2024 23:12:07 -0500 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 1rgDpj-0008II-C0 for qemu-devel@nongnu.org; Fri, 01 Mar 2024 20:06:36 -0500 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rgDph-0001q8-W6 for qemu-devel@nongnu.org; Fri, 01 Mar 2024 20:06:35 -0500 Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-6e5796d01c8so2080197b3a.0 for ; Fri, 01 Mar 2024 17:06:33 -0800 (PST) Received: from stoup.. (098-147-055-211.res.spectrum.com. [98.147.55.211]) by smtp.gmail.com with ESMTPSA id lo21-20020a056a003d1500b006e5acdb5c94sm2399881pfb.176.2024.03.01.17.06.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 17:06:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709341593; x=1709946393; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=72XxUBIqz7vi+7Nek64Y5gomRVx4hdx3L9w0Ay29Drg=; b=TNocJI31qs82FeT7bRUIq4DHZABCOz6Obnpm9tFjprjJTbxVqqUAqraUpijQ9N1iHy wkfifkHL45eUHZr3ijHgSYlOl0PI63JU5s5pWpA4+CjCxRuw37C7sjaMacbaVq3s/7yQ 1RBPg+QoF4fjJ9cWkKhuNxXQAhwQ2L9S6WoIQMyLbCqT3uO/G5rCJVy6aHUS70Fh4AJ1 t/zcueWFyemBua+e/T7uG/cNap2Hx65gJrmHiuq7kE0RAuJV4TboIU7m79BQ7NttwwG2 fPSZSG/TEAz9xnDPfT84+qJHB6g38LqYF0p+xEThPWECShAdV14Rj244CODP5xRvCdNU rVKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709341593; x=1709946393; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=72XxUBIqz7vi+7Nek64Y5gomRVx4hdx3L9w0Ay29Drg=; b=H9dw3D/C1DWYalMGMgy8A4ayLYTzEKLY4td1GZckpGgiWPUU6/Rkw8K/puwwoHTvvp frjW4g+/h+0OO7n98SGwrcboNxMfGrRQYHqI2ONUaRAuxbMyWuT5+5LXYnSu4peQhOFU 3s8lxND7hXRX8x+C3rxRdQiJahckBkOFwdRzUDOXZg3qMEYtJFN2Ow3hf4KlOmGejUdo jxbPhSk4185rNStc78OhOs4HRmg7tUCZf66ml83TSL+N9txrRUk4esE2NGV1zWrH8VTo gClTNLf8LABKf1qhu4ysqF0LjOezqx1Oxd9OuO4xwx5QGxXFLjRU+RpN2tkz65jwkfoL 4dPg== X-Gm-Message-State: AOJu0YwFS+iL0iu3KplEpNRHAkBo23dHA4WTl32t5KYJjTUbSw2sp1FL IUCELF5WNEFJzW2aCIMOf/82ra5dCu4W1m6JVGnRlhAdosEAGGRJhe6UqfloLrtPJZu+GP6kFmJ 0 X-Google-Smtp-Source: AGHT+IEzaKFxPoXDQOuNbzq709VjS8bxpYdu/iFfP3gXfSVdPqOKCSRjQtVah0nIajzqc3dxzVrpww== X-Received: by 2002:a05:6a00:2406:b0:6e4:9ba6:d153 with SMTP id z6-20020a056a00240600b006e49ba6d153mr2955645pfh.8.1709341592720; Fri, 01 Mar 2024 17:06:32 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com Subject: [PATCH 2/3] linux-user: Implement PR_{GET,SET}_SPECULATION_CTRL Date: Fri, 1 Mar 2024 15:06:26 -1000 Message-Id: <20240302010627.12998-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240302010627.12998-1-richard.henderson@linaro.org> References: <20240302010627.12998-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: pass client-ip=2607:f8b0:4864:20::42a; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42a.google.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1709352877514100001 Content-Type: text/plain; charset="utf-8" Both of these only pass and return integral values. Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- linux-user/syscall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 263b651cc5..efa200878f 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -6451,6 +6451,8 @@ static abi_long do_prctl(CPUArchState *env, abi_long = option, abi_long arg2, case PR_GET_IO_FLUSHER: case PR_SET_IO_FLUSHER: case PR_SET_CHILD_SUBREAPER: + case PR_GET_SPECULATION_CTRL: + case PR_SET_SPECULATION_CTRL: /* Some prctl options have no pointer arguments and we can pass on= . */ return get_errno(prctl(option, arg2, arg3, arg4, arg5)); =20 @@ -6465,8 +6467,6 @@ static abi_long do_prctl(CPUArchState *env, abi_long = option, abi_long arg2, return ret; } =20 - case PR_GET_SPECULATION_CTRL: - case PR_SET_SPECULATION_CTRL: case PR_GET_TID_ADDRESS: /* TODO */ return -TARGET_EINVAL; --=20 2.34.1