From nobody Mon Apr 29 23:38:25 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linux.intel.com ARC-Seal: i=1; a=rsa-sha256; t=1574150701; cv=none; d=zoho.com; s=zohoarc; b=E5JyzIj3YvPSHf2nE5nQK3NdQCQPr+jYG4cBNmLZkk0Mq+47Ym2080G4oKqISo1U9k/gH7y36epcP/AuBszwKuBBvGmPra70hi4O6RzpKy33Sw3SpGd3LGCGvpHJ47F+elAyo5OSGXKIPwagdoJshxX/uJfvqR0HiEPWJMWymQo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1574150701; h=Content-Type:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=sIVcqFxx5mYB8K1KbSLI7b5IAzbW7feCxbtobJYAtEw=; b=l93yMFcQmls7MzXzrIhjxeNcY5QYLFlFztsVry3WSuvMmAgz3okgK5dUnnliaRVine5yezu4f5wWIDkIcW7H2rjt3YT0tT9Fv45japZr/eQrwgO5PE+0b0RMYm6brSXlF+KUEtixzcnJyadtdSZv4Qt1CplF6Yz2Aqu3vC/Kzzs= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1574150701393779.3321405515022; Tue, 19 Nov 2019 00:05:01 -0800 (PST) Received: from localhost ([::1]:42470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWyVQ-0005o7-9z for importer@patchew.org; Tue, 19 Nov 2019 03:05:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42914) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWxuE-0006ek-St for qemu-devel@nongnu.org; Tue, 19 Nov 2019 02:26:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iWxuA-0005BT-AB for qemu-devel@nongnu.org; Tue, 19 Nov 2019 02:26:31 -0500 Received: from mga02.intel.com ([134.134.136.20]:35764) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iWxu4-00058A-Vh for qemu-devel@nongnu.org; Tue, 19 Nov 2019 02:26:27 -0500 Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Nov 2019 23:26:13 -0800 Received: from guptapadev.jf.intel.com (HELO guptapadev.amr) ([10.7.198.56]) by orsmga006.jf.intel.com with ESMTP; 18 Nov 2019 23:26:13 -0800 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,322,1569308400"; d="scan'208";a="209331765" Date: Mon, 18 Nov 2019 23:23:27 -0800 From: Pawan Gupta To: pbonzini@redhat.com Subject: [PATCH] target/i386: Export TAA_NO bit to guests Message-ID: <20191119072327.GA30825@guptapadev.amr> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.12.1 (2019-06-15) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 134.134.136.20 X-Mailman-Approved-At: Tue, 19 Nov 2019 03:03:10 -0500 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel@nongnu.org, ehabkost@redhat.com, rth@twiddle.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" TSX Async Abort (TAA) is a side channel attack on internal buffers in some Intel processors similar to Microachitectural Data Sampling (MDS). Some future Intel processors will use the ARCH_CAP_TAA_NO bit in the IA32_ARCH_CAPABILITIES MSR to report that they are not vulnerable to TAA. Make this bit available to guests. Signed-off-by: Pawan Gupta --- 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 a624163ac2cd..af84b04951cf 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -1205,7 +1205,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORD= S] =3D { .feat_names =3D { "rdctl-no", "ibrs-all", "rsba", "skip-l1dfl-vmentry", "ssb-no", "mds-no", NULL, NULL, - NULL, NULL, NULL, NULL, + "taa-no", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, --=20 2.21.0