From nobody Sat Feb 7 03:21:30 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@intel.com; 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=linux.intel.com ARC-Seal: i=1; a=rsa-sha256; t=1691774376; cv=none; d=zohomail.com; s=zohoarc; b=PxyDt7P7o7vxlB0Abf5P5r2wYpf6U4QeC77cBtrZiaobMEc2XOx68iC9LlAs1zU6eIKKnGGxx7imJLXOXxEowSn3OiDGQFFHbTdi9bAcqTZ9x8AngzGyTQ7+Wp1WDXOA2YZrLSrwIj2WJIPREhg2mrpUOPoIOVqcC/OrwnoUZH8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1691774376; h=Content-Type:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=E5bLYui27p4uDAFgVWxTgo8jRb6ju/+L9/IFYNuvlu8=; b=d6D8HGZVe5oD2ObOz62lokstnrBWF1VD2vgh2EkKPieUqQ5a9c38yKHUjad06NAb7eTMMtlcx9F0+nLdEvmiwcFFh2JmakwuIqPdjC8tl4scXSEvJGzQhyZHKHUZx1EG384wVPn0cGlVSVL+q+KVTZiUnYbcVehYRVGwLYo1ESI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@intel.com; 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 16917743766891021.3704400410112; Fri, 11 Aug 2023 10:19:36 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qUVmZ-00055J-BB; Fri, 11 Aug 2023 13:18:39 -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 1qUVmW-00054P-Uw for qemu-devel@nongnu.org; Fri, 11 Aug 2023 13:18:36 -0400 Received: from mgamail.intel.com ([134.134.136.31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qUVmU-00073P-IH for qemu-devel@nongnu.org; Fri, 11 Aug 2023 13:18:36 -0400 Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2023 10:18:29 -0700 Received: from keylianx-mobl.amr.corp.intel.com (HELO desk) ([10.212.254.196]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2023 10:18:29 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691774314; x=1723310314; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Y5ATu1ZdM0Drf0OcKUvGdeaoQ0sQywLY8iy5xiM7WGc=; b=U/Vg4Z1Ci0HzcASDOp5x5QGj87Ruo9yKt+HGh0t606TBUrOZqQxuxuar QXQoY1FIpF/bDMMiTHMXZPh5xHUf1E7JQBImhqtGStasEsFvts0n68FAY ukmTrtU/FckaAg/o6b0rQwLckc0A6uIb0vWq975bVfp+pezeZvxbXwN4T TxF9EH7BwzgAOzsX0UFzDCj+zWDr05I5jSiYLyTGYgABc8Tz3ZAOuFP6J EGfX3bg0SJQ8ozP1aHNXjLqSuJbKh6AaTC/ufYbiyPDA1qAslioJ+beBD ga8GSdGRaKOE6SXWf7tn+nhAJNNEukk8o0QL8nISpz19vxlr7fXdt5Lii g==; X-IronPort-AV: E=McAfee;i="6600,9927,10799"; a="435614376" X-IronPort-AV: E=Sophos;i="6.01,166,1684825200"; d="scan'208";a="435614376" X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10799"; a="802736796" X-IronPort-AV: E=Sophos;i="6.01,166,1684825200"; d="scan'208";a="802736796" Date: Fri, 11 Aug 2023 10:18:28 -0700 From: Pawan Gupta To: qemu-devel Cc: Paolo Bonzini , tao1.su@linux.intel.com, xiaoyao.li@intel.com, Yu Zhang , Daniel Sneddon , antonio.gomez.iglesias@intel.com, Chao Gao Subject: [PATCH] target/i386: Export GDS_NO bit to guests Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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=134.134.136.31; envelope-from=pawan.kumar.gupta@linux.intel.com; helo=mgamail.intel.com X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=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: 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 @intel.com) X-ZM-MESSAGEID: 1691774378879100003 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Gather Data Sampling (GDS) is a side-channel attack using Gather instructions. Some Intel processors will set ARCH_CAP_GDS_NO bit in MSR IA32_ARCH_CAPABILITIES to report that they are not vulnerable to GDS. Make this bit available to guests. Signed-off-by: Pawan Gupta --- This is just compile tested. target/i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 97ad229d8ba3..48709b77689f 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -1155,7 +1155,7 @@ FeatureWordInfo feature_word_info[FEATURE_WORDS] =3D { NULL, "sbdr-ssdp-no", "fbsdp-no", "psdp-no", NULL, "fb-clear", NULL, NULL, NULL, NULL, NULL, NULL, - "pbrsb-no", NULL, NULL, NULL, + "pbrsb-no", NULL, "gds-no", NULL, NULL, NULL, NULL, NULL, }, .msr =3D { --=20 2.34.1