Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp554750lqp; Thu, 21 Mar 2024 08:45:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW/soFYTBEINr8gCicP3cmOZ6Bbauf4xpLDgZIM03sE/t72Dyk/gbwmbhNGtf8c7I4SQR8SMMaAVWbdbhOL3Y/1ylnAsiAAWrBH+XqO2Q== X-Google-Smtp-Source: AGHT+IFNpY9idJnqCh3cQAVukF3fV42+jm4PMtB+S+yPdQ4x/5Wm07xu/Wvwme1XgWWGkR5bkEFG X-Received: by 2002:a17:902:7616:b0:1dd:e114:121c with SMTP id k22-20020a170902761600b001dde114121cmr9300518pll.56.1711035929842; Thu, 21 Mar 2024 08:45:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711035929; cv=pass; d=google.com; s=arc-20160816; b=GGnPweFRqkkXPM5cS8DoxzB3MT+FUNcOJyVsGRqx75xnq5tywn1UUaBX4UFO2rlYgj uQirnDNbYDUW388X3rt3jQElPqeLpv1rioUIX90K1rQ/ksTeq13F+iPm+PY/DJnX+4n1 dxInO79fIeJ+jrvtez4q2KXgsjwTJEMTuiHCQSUA51Y8KnaZGVYKas/seOZ6C13dDJ+u 3IttAcW9UhhiByvtjS9ZozhVaq81eUyBbYeAHRJM4BTcKN7ngtxhT9T+ka3s9arSPG6N BU9ctgEh/CoetUjPdRds1l5h+SS6g4oJRCkiAbc6r9Ap7o/qOX5kLm0fKFpuyAxnqQjR 9ZNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:disposition-notification-to :from:references:cc:to:content-language:subject:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id; bh=3Dq9BzJf1yFOoI5gNxaV7EahO06IA9gWrbLg64AtQvk=; fh=aa/k98K5tmJupX833sR9R31Lnk710s1L487e9qz4/mI=; b=t6Gxx9MSzegsFSGTTEw4ow4tNGjE9pamTNYLZfO0O+CHvalFmPihkWunmA5kJolwVv sH6ui5ejYY6pPjMI4GzMQQP/1SoOAZ2Z+Z7T1S8ush4cc+xJNr0piUWRCSaGUYs8leUP RXbXc+7m13tz4qsOpRFI4Ah9neXqyFx29HhLbefc3xQ7xGAP22QrBG6M67bT2oZKzXyv pPYvSHxUyBFw6AquYcebo0N1Xb3c8uKiz+XXnE2T+Kiq25yDdblx88Cttng1KOMd3scE NlJFOE6lqQtHAXeDNwgR0nqSNlW2/8NQkRWa4PeyQ5nixisUs8LnQvrzFkwg4y0JczKE GSNA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=maciej.szmigiero.name); spf=pass (google.com: domain of linux-kernel+bounces-110273-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110273-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k5-20020a170902d58500b001e01c20112esi9207996plh.143.2024.03.21.08.45.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 08:45:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110273-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=maciej.szmigiero.name); spf=pass (google.com: domain of linux-kernel+bounces-110273-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110273-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 83D39281A2D for ; Thu, 21 Mar 2024 15:45:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 642F58626B; Thu, 21 Mar 2024 15:44:42 +0000 (UTC) Received: from vps-vb.mhejs.net (vps-vb.mhejs.net [37.28.154.113]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 356808627E for ; Thu, 21 Mar 2024 15:44:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=37.28.154.113 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711035881; cv=none; b=A12stnvR3E+Idif+cvGK20CGZIF+NBZVa/YsEG3FuiPaILMEOPQeeR/EVuLBXLIaXKrjpAy0BOE1iMwu0sBSjgfP75UvI2Ism9JcH2lisFRWpS1RHHAP71Jpe25mUFzc6FfBkzq9bWA3UFVrxXlSquQmvg17unqWtbJDgdjHcdQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711035881; c=relaxed/simple; bh=adoz/7Mb/2vqMcjNGOS37q+EBHMbbIROxQhxoqIrYyQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=U9hR/qHLa/wtA5t5L/SQDQE4fsN2C93J7tanzc2JOOtcCSIPpwdePbGN//ocWg/HVGJeiim7+tZRhXsU/MOG6/z1hRYzGxahZ5OQbZyrNw6J5/fHQQ6uPbi7U06+b1OBvZ9MMngmjPgDr5wSfEoyFWDw9L2womV6Lv/WljPiZ+s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=maciej.szmigiero.name; spf=pass smtp.mailfrom=maciej.szmigiero.name; arc=none smtp.client-ip=37.28.154.113 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=maciej.szmigiero.name Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=maciej.szmigiero.name Received: from MUA by vps-vb.mhejs.net with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rnKEj-00065S-KK; Thu, 21 Mar 2024 16:21:45 +0100 Message-ID: <79125c93-285c-43f8-ac05-87c34c99e6bb@maciej.szmigiero.name> Date: Thu, 21 Mar 2024 16:21:39 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] x86/CPU/AMD: Improve the erratum 1386 workaround Content-Language: en-US, pl-PL To: Borislav Petkov Cc: LKML , Boris Ostrovsky , X86 ML References: <20240321120548.22687-1-bp@alien8.de> <20240321120548.22687-2-bp@alien8.de> From: "Maciej S. Szmigiero" Disposition-Notification-To: "Maciej S. Szmigiero" In-Reply-To: <20240321120548.22687-2-bp@alien8.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 21.03.2024 13:05, Borislav Petkov wrote: > From: "Borislav Petkov (AMD)" > > Disable XSAVES only on machines which haven't loaded the microcode > revision containing the erratum fix. > > This will come in handy when running archaic OSes as guests. OSes whose > brilliant programmers thought that CPUID is overrated and one should not > query it but use features directly, ala shoot first, ask questions > later... but only if you're alive after the shooting. > > Signed-off-by: Borislav Petkov (AMD) > Cc: Boris Ostrovsky > Cc: "Maciej S. Szmigiero" > --- Tested-by: Maciej S. Szmigiero Thanks, Maciej