From nobody Fri Apr 19 09:27:52 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1557929519; cv=none; d=zoho.com; s=zohoarc; b=JswtlhyHy+mU/VLUu/8anKrKndBQ4KzB6njs4h2HUegD1UMBwwwNMOwXbJDJlYZylsHVDzMRaiE6uBgnzga8efVxdW4xD/x6z1hoUx/ins1OE/bxMImv4E/7r+plY28EaJAkesnEPtXISyJRjTGg6Tni4GbT1GPvILStxWc6FzM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1557929519; h=Content-Transfer-Encoding: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:ARC-Authentication-Results; bh=MimgU8kKNbK/hfHyEEJLOGqbdRiEnl+SmrxuGSgonKQ=; b=GWXI79awC7nCCjAiQShEP+Qp2nB29QtAgVRQ15c9Ijj384XGBYQ5+EbtHx0WDmWll2ZGSUTTf/5gx2E3XFt8iyb+X+OoRRTPgn9G5hde9rlFkycuKklz92cgzWUZ3O/7/Tmqru2/znNDEaAaOjpOy3X2Cvm8l3jmkzU/d3Effew= 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 (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1557929519143721.9541196266664; Wed, 15 May 2019 07:11:59 -0700 (PDT) Received: from localhost ([127.0.0.1]:37740 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQudL-0008VZ-48 for importer@patchew.org; Wed, 15 May 2019 10:11:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQubz-0007sm-Hz for qemu-devel@nongnu.org; Wed, 15 May 2019 10:10:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQubx-0007G3-Op for qemu-devel@nongnu.org; Wed, 15 May 2019 10:10:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59894) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hQubt-00078I-US for qemu-devel@nongnu.org; Wed, 15 May 2019 10:10:23 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 02B64307D840; Wed, 15 May 2019 14:10:16 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-65.ams2.redhat.com [10.36.112.65]) by smtp.corp.redhat.com (Postfix) with ESMTP id B451E5D706; Wed, 15 May 2019 14:10:14 +0000 (UTC) From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: qemu-devel@nongnu.org Date: Wed, 15 May 2019 15:10:10 +0100 Message-Id: <20190515141011.5315-2-berrange@redhat.com> In-Reply-To: <20190515141011.5315-1-berrange@redhat.com> References: <20190515141011.5315-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Wed, 15 May 2019 14:10:16 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 1/2] target/i386: define md-clear bit X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Eduardo Habkost , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" From: Paolo Bonzini md-clear is a new CPUID bit which is set when microcode provides the mechanism to invoke a flush of various exploitable CPU buffers by invoking the VERW instruction. Signed-off-by: Paolo Bonzini --- 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 722c5514d4..4fa67bcfaf 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -1077,7 +1077,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORD= S] =3D { .feat_names =3D { NULL, NULL, "avx512-4vnniw", "avx512-4fmaps", NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL, + NULL, NULL, "md-clear", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, --=20 2.21.0 From nobody Fri Apr 19 09:27:52 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1557929597; cv=none; d=zoho.com; s=zohoarc; b=EU6XAwuIbdVNVo/qVtKtMo1X1C8T0wRL0FHH/HDoMUlPd6v44syxrg7ubaCgKfiPbyAQiM9xI6Wo2F8BcUY3g2FNO1Mcv6aAOObASwfuOPdyOVgd9IS6TtRs5PckFywUM9FTtQ3HSZBxFKkTNted28Goi0kbhHHiLKzQKGfAHeg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1557929597; h=Content-Type:Content-Transfer-Encoding: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:ARC-Authentication-Results; bh=Kq6twuQcht1fO6qiVMZ8oRIqrISJ9vg1hU0g6hhLRso=; b=hh4LUlgjHQ99CvY7a3fZ8W96k7YN3JwR6XMYwLQa/wEu5DuPpDjcMV1k4VM9iQja09khVmCkUKphkleCK3A+FuPhKXqTRHMBKCrmbh1kDf4URtlHZg92O8pz9twNNp3HvB8QGyExDXpOahhCkUpNc7MqcXeMv2GbIXgafsy/NDA= 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 155792959737163.74038719912892; Wed, 15 May 2019 07:13:17 -0700 (PDT) Received: from localhost ([127.0.0.1]:37754 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQueg-0000xe-Eq for importer@patchew.org; Wed, 15 May 2019 10:13:14 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQubz-0007sl-Hr for qemu-devel@nongnu.org; Wed, 15 May 2019 10:10:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQubx-0007Fl-Mk for qemu-devel@nongnu.org; Wed, 15 May 2019 10:10:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:11047) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hQubs-00079N-8F for qemu-devel@nongnu.org; Wed, 15 May 2019 10:10:21 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DA3DE306C9D8; Wed, 15 May 2019 14:10:17 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-65.ams2.redhat.com [10.36.112.65]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5F5665D706; Wed, 15 May 2019 14:10:16 +0000 (UTC) From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: qemu-devel@nongnu.org Date: Wed, 15 May 2019 15:10:11 +0100 Message-Id: <20190515141011.5315-3-berrange@redhat.com> In-Reply-To: <20190515141011.5315-1-berrange@redhat.com> References: <20190515141011.5315-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Wed, 15 May 2019 14:10:17 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 2/2] docs: recommend use of md-clear feature on all Intel CPUs X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Eduardo Habkost , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Update x86 CPU model guidance to recommend that the md-clear feature is manually enabled with all Intel CPU models, when supported by the host microcode. Signed-off-by: Daniel P. Berrang=C3=A9 --- docs/qemu-cpu-models.texi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/qemu-cpu-models.texi b/docs/qemu-cpu-models.texi index 23c11dc86f..ad040cfc98 100644 --- a/docs/qemu-cpu-models.texi +++ b/docs/qemu-cpu-models.texi @@ -200,6 +200,18 @@ Not included by default in any Intel CPU model. Should be explicitly turned on for all Intel CPU models. =20 Note that not all CPU hardware will support this feature. + +@item @code{md-clear} + +Required to confirm the MDS (CVE-2018-12126, CVE-2018-12127, CVE-2018-1213= 0, +CVE-2019-11091) fixes. + +Not included by default in any Intel CPU model. + +Must be explicitly turned on for all Intel CPU models. + +Requires the host CPU microcode to support this feature before it +can be used for guest CPUs. @end table =20 =20 --=20 2.21.0