From nobody Sat May 18 06:31:19 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=1558032937; cv=none; d=zoho.com; s=zohoarc; b=aclQOTgrle1Ace5f3Ung/Gmwlq87Nb1oLvL4rLVrQ3yRu95P9dCJDZSnhvWsRIJs6hIGlT1jdMyl4a2V0iMJ+V7zqXo3AL7KUUX+09Z4QP4LQqmTSEqFULi++XDmrDb3awLhdWQ44Fq1xWPQlJ+CNsNp6leM64VwgbBI8qtrLi0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558032937; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=zopX6IEYgjD22NsNYv7qyTiPY6iPZJq0L5UZqqPYKvw=; b=SANJqsYPRDsHinYFf4FJL9nOkcDGZJCcmvkYIdFuepklPnhha89DREHjTJrriKyS9kq9TI1SCB5YSi6v9IbgqlLnsyWO+IpAfi/pRwoiGvNOea1VNnp0jk+nmrBo4IPVDvg0mpCFpuQ6xZ45wl2bMwuos20CH+pDEbukwnUVL/4= 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 1558032937652753.9871124151626; Thu, 16 May 2019 11:55:37 -0700 (PDT) Received: from localhost ([127.0.0.1]:34073 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRLXH-0002t5-No for importer@patchew.org; Thu, 16 May 2019 14:55:23 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRLVW-00024y-1Z for qemu-devel@nongnu.org; Thu, 16 May 2019 14:53:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRLVV-0003Fj-8b for qemu-devel@nongnu.org; Thu, 16 May 2019 14:53:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50652) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hRLVV-0003Fc-3V for qemu-devel@nongnu.org; Thu, 16 May 2019 14:53:33 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D465730605EF for ; Thu, 16 May 2019 18:53:24 +0000 (UTC) Received: from donizetti.redhat.com (ovpn-112-28.ams2.redhat.com [10.36.112.28]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4D5C51001E67; Thu, 16 May 2019 18:53:21 +0000 (UTC) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Thu, 16 May 2019 20:53:20 +0200 Message-Id: <20190516185320.28340-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Thu, 16 May 2019 18:53:27 +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] target/i386: add MDS-NO feature 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: berrange@redhat.com, ehabkost@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Microarchitectural Data Sampling is a hardware vulnerability which allows unprivileged speculative access to data which is available in various CPU internal buffers. Some Intel processors use the ARCH_CAP_MDS_NO bit in the IA32_ARCH_CAPABILITIES MSR to report that they are not vulnerable, make it available to guests. 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..558347e6c3 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -1184,7 +1184,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORD= S] =3D { .type =3D MSR_FEATURE_WORD, .feat_names =3D { "rdctl-no", "ibrs-all", "rsba", "skip-l1dfl-vmentry", - "ssb-no", NULL, NULL, NULL, + "ssb-no", "mds-no", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, --=20 2.21.0